Package com.couchbase.client.core.env
Class OrphanReporterConfig.Builder
java.lang.Object
com.couchbase.client.core.env.OrphanReporterConfig.Builder
- Enclosing class:
OrphanReporterConfig
The builder which allows customization of the
OrphanReporterConfig
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a config out of this builder and freezes it effectively.emitInterval
(Duration emitInterval) Allows to customize the event emit intervalenabled
(boolean enabled) Allows to configure if this reporter is enabled.queueLength
(int queueLength) Allows to configure the max queue size for the responses waiting to be analyzed for reporting.sampleSize
(int sampleSize) Allows to customize the sample size per service.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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.
-
sampleSize
Allows to customize the sample size per service.- Parameters:
sampleSize
- the sample size to set.- Returns:
- this builder for chaining.
-
enabled
Allows to configure if this reporter is enabled.- Parameters:
enabled
- the status of this reporter.- Returns:
- this builder for chaining.
-
build
Creates a config out of this builder and freezes it effectively.- Returns:
- the built config.
-