public class OrphanReporterConfig extends Object
OrphanReporter
.Modifier and Type | Class and Description |
---|---|
static class |
OrphanReporterConfig.Builder
The builder which allows customization of the
OrphanReporterConfig . |
Modifier and Type | Method and Description |
---|---|
static OrphanReporterConfig.Builder |
builder()
Allows to configure a custom
OrphanReporterConfig through a Builder API. |
static OrphanReporterConfig |
create()
Creates the default config for the
OrphanReporter . |
Duration |
emitInterval()
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 |
queueLength()
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 |
sampleSize()
Returns the configured sample size.
|
static OrphanReporterConfig.Builder |
sampleSize(int sampleSize)
Allows to customize the sample size per service.
|
public static OrphanReporterConfig.Builder builder()
OrphanReporterConfig
through a Builder API.public static OrphanReporterConfig create()
OrphanReporter
.public static OrphanReporterConfig.Builder sampleSize(int sampleSize)
sampleSize
- the sample size to set.public static OrphanReporterConfig.Builder emitInterval(Duration emitInterval)
emitInterval
- the interval to use.public static OrphanReporterConfig.Builder queueLength(int queueLength)
queueLength
- the queue size to use.public static OrphanReporterConfig.Builder enabled(boolean enabled)
enabled
- the status of this reporter.public Duration emitInterval()
public int sampleSize()
public int queueLength()
public boolean enabled()
Copyright © 2021 Couchbase, Inc.. All rights reserved.