Package com.couchbase.client.core.env
Class OrphanReporterConfig
java.lang.Object
com.couchbase.client.core.env.OrphanReporterConfig
Allows to customize the behavior of the
OrphanReporter
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The builder which allows customization of theOrphanReporterConfig
.static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrphanReporterConfig.Builder
builder()
Allows to configure a customOrphanReporterConfig
through a Builder API.static OrphanReporterConfig
create()
Creates the default config for theOrphanReporter
.Returns the configured emit interval.static OrphanReporterConfig.Builder
emitInterval
(Duration emitInterval) Allows to customize the event emit interval.boolean
enabled()
Returns the status (enabled/disabled).static OrphanReporterConfig.Builder
enabled
(boolean enabled) Allows to configure the status (enabled/disabled) of this reporter.int
Returns the configured queue length.static OrphanReporterConfig.Builder
queueLength
(int queueLength) Allows to configure the max queue size for the responses waiting to be analyzed for reporting.int
Returns the configured sample size.static OrphanReporterConfig.Builder
sampleSize
(int sampleSize) Allows to customize the sample size per service.
-
Method Details
-
builder
Allows to configure a customOrphanReporterConfig
through a Builder API.- Returns:
- the builder to customize the config.
-
create
Creates the default config for theOrphanReporter
.- Returns:
- the default config.
-
sampleSize
Allows to customize the sample size per service.- Parameters:
sampleSize
- the sample size to set.- Returns:
- this builder for chaining.
-
emitInterval
Allows to customize the event emit interval.- Parameters:
emitInterval
- the interval to use.- Returns:
- this builder for chaining.
-
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
Allows to configure the status (enabled/disabled) of this reporter.- Parameters:
enabled
- the status of this reporter.- Returns:
- this builder for chaining.
-
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).
-