Package com.couchbase.client.core.env
Class OrphanReporterConfig.Builder
- java.lang.Object
-
- com.couchbase.client.core.env.OrphanReporterConfig.Builder
-
- Enclosing class:
- OrphanReporterConfig
public static class OrphanReporterConfig.Builder extends Object
The builder which allows customization of theOrphanReporterConfig.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrphanReporterConfigbuild()Creates a config out of this builder and freezes it effectively.OrphanReporterConfig.BuilderemitInterval(Duration emitInterval)Allows to customize the event emit intervalOrphanReporterConfig.Builderenabled(boolean enabled)Allows to configure if this reporter is enabled.OrphanReporterConfig.BuilderqueueLength(int queueLength)Allows to configure the max queue size for the responses waiting to be analyzed for reporting.OrphanReporterConfig.BuildersampleSize(int sampleSize)Allows to customize the sample size per service.
-
-
-
Method Detail
-
emitInterval
public 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 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.
-
sampleSize
public 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.
-
enabled
public OrphanReporterConfig.Builder enabled(boolean enabled)
Allows to configure if this reporter is enabled.- Parameters:
enabled- the status of this reporter.- Returns:
- this builder for chaining.
-
build
public OrphanReporterConfig build()
Creates a config out of this builder and freezes it effectively.- Returns:
- the built config.
-
-