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
Nested ClassesModifier and TypeClassDescriptionstatic classThe builder which allows customization of theOrphanReporterConfig.static class -
Method Summary
Modifier and TypeMethodDescriptionstatic OrphanReporterConfig.Builderbuilder()Deprecated.static OrphanReporterConfigcreate()Deprecated.Instead, please useCoreEnvironment.Builder.orphanReporterConfig(Consumer)and configure the builder passed to the consumer.Returns the configured emit interval.static OrphanReporterConfig.BuilderemitInterval(Duration emitInterval) Deprecated.This method creates a new builder.booleanenabled()Returns the status (enabled/disabled).static OrphanReporterConfig.Builderenabled(boolean enabled) Deprecated.This method creates a new builder.intReturns the configured queue length.static OrphanReporterConfig.BuilderqueueLength(int queueLength) Deprecated.This method creates a new builder.intReturns the configured sample size.static OrphanReporterConfig.BuildersampleSize(int sampleSize) Deprecated.This method creates a new builder.
-
Method Details
-
builder
Deprecated.Instead of creating a new builder, please useCoreEnvironment.Builder.orphanReporterConfig(Consumer)and configure the builder passed to the consumer. Note: CoreEnvironment is a base class; you'll probably call that method via a subclass namedClusterEnvironment.Allows to configure a customOrphanReporterConfigthrough a Builder API.- Returns:
- the builder to customize the config.
-
create
Deprecated.Instead, please useCoreEnvironment.Builder.orphanReporterConfig(Consumer)and configure the builder passed to the consumer. Note: CoreEnvironment is a base class; you'll probably call that method via a subclass namedClusterEnvironment.Creates the default config for theOrphanReporter.- Returns:
- the default config.
-
sampleSize
Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder().Allows to customize the sample size per service.- Parameters:
sampleSize- the sample size to set.- Returns:
- this builder for chaining.
-
emitInterval
Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder().Allows to customize the event emit interval.- Parameters:
emitInterval- the interval to use.- Returns:
- this builder for chaining.
-
queueLength
Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder().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
Deprecated.This method creates a new builder. Please see the deprecation notice onbuilder().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).
-
CoreEnvironment.Builder.orphanReporterConfig(Consumer)and configure the builder passed to the consumer.