Package com.couchbase.client.core.env
Class OrphanReporterConfig
- java.lang.Object
-
- com.couchbase.client.core.env.OrphanReporterConfig
-
public class OrphanReporterConfig extends Object
Allows to customize the behavior of theOrphanReporter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOrphanReporterConfig.BuilderThe builder which allows customization of theOrphanReporterConfig.static classOrphanReporterConfig.Defaults
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OrphanReporterConfig.Builderbuilder()Allows to configure a customOrphanReporterConfigthrough a Builder API.static OrphanReporterConfigcreate()Creates the default config for theOrphanReporter.DurationemitInterval()Returns the configured emit interval.static OrphanReporterConfig.BuilderemitInterval(Duration emitInterval)Allows to customize the event emit interval.booleanenabled()Returns the status (enabled/disabled).static OrphanReporterConfig.Builderenabled(boolean enabled)Allows to configure the status (enabled/disabled) of this reporter.intqueueLength()Returns the configured queue length.static OrphanReporterConfig.BuilderqueueLength(int queueLength)Allows to configure the max queue size for the responses waiting to be analyzed for reporting.intsampleSize()Returns the configured sample size.static OrphanReporterConfig.BuildersampleSize(int sampleSize)Allows to customize the sample size per service.
-
-
-
Method Detail
-
builder
public static OrphanReporterConfig.Builder builder()
Allows to configure a customOrphanReporterConfigthrough a Builder API.- Returns:
- the builder to customize the config.
-
create
public static OrphanReporterConfig create()
Creates the default config for theOrphanReporter.- Returns:
- the default config.
-
sampleSize
public static OrphanReporterConfig.Builder sampleSize(int sampleSize)
Allows to customize the sample size per service.- Parameters:
sampleSize- the sample size to set.- Returns:
- this builder for chaining.
-
emitInterval
public static OrphanReporterConfig.Builder emitInterval(Duration emitInterval)
Allows to customize the event emit interval.- Parameters:
emitInterval- the interval to use.- Returns:
- this builder for chaining.
-
queueLength
public static OrphanReporterConfig.Builder queueLength(int queueLength)
Allows to configure the max queue size for the responses waiting to be analyzed for reporting.- Parameters:
queueLength- the queue size to use.- Returns:
- this builder for chaining.
-
enabled
public static OrphanReporterConfig.Builder enabled(boolean enabled)
Allows to configure the status (enabled/disabled) of this reporter.- Parameters:
enabled- the status of this reporter.- Returns:
- this builder for chaining.
-
emitInterval
public Duration emitInterval()
Returns the configured emit interval.
-
sampleSize
public int sampleSize()
Returns the configured sample size.
-
queueLength
public int queueLength()
Returns the configured queue length.
-
enabled
public boolean enabled()
Returns the status (enabled/disabled).
-
-