public class OrphanReporterConfig extends Object
OrphanReporter.| Modifier and Type | Class and Description |
|---|---|
static class |
OrphanReporterConfig.Builder
The builder which allows customization of the
OrphanReporterConfig. |
static class |
OrphanReporterConfig.Defaults |
| Modifier and Type | Method and Description |
|---|---|
static OrphanReporterConfig.Builder |
builder()
Deprecated.
Instead of creating a new builder, please use
CoreEnvironment.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 named
ClusterEnvironment. |
static OrphanReporterConfig |
create()
Deprecated.
Instead, please use
CoreEnvironment.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 named
ClusterEnvironment. |
Duration |
emitInterval()
Returns the configured emit interval.
|
static OrphanReporterConfig.Builder |
emitInterval(Duration emitInterval)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
builder(). |
boolean |
enabled()
Returns the status (enabled/disabled).
|
static OrphanReporterConfig.Builder |
enabled(boolean enabled)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
builder(). |
int |
queueLength()
Returns the configured queue length.
|
static OrphanReporterConfig.Builder |
queueLength(int queueLength)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
builder(). |
int |
sampleSize()
Returns the configured sample size.
|
static OrphanReporterConfig.Builder |
sampleSize(int sampleSize)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
builder(). |
@Deprecated public static OrphanReporterConfig.Builder builder()
CoreEnvironment.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 named
ClusterEnvironment.OrphanReporterConfig through a Builder API.@Deprecated public static OrphanReporterConfig create()
CoreEnvironment.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 named
ClusterEnvironment.OrphanReporter.@Deprecated public static OrphanReporterConfig.Builder sampleSize(int sampleSize)
builder().sampleSize - the sample size to set.@Deprecated public static OrphanReporterConfig.Builder emitInterval(Duration emitInterval)
builder().emitInterval - the interval to use.@Deprecated public static OrphanReporterConfig.Builder queueLength(int queueLength)
builder().queueLength - the queue size to use.@Deprecated public static OrphanReporterConfig.Builder enabled(boolean enabled)
builder().enabled - the status of this reporter.public Duration emitInterval()
public int sampleSize()
public int queueLength()
public boolean enabled()
Copyright © 2024 Couchbase, Inc.. All rights reserved.