@Stability.Volatile public class TimerConfig extends Object
Most users will have no reason to adjust these settings. It is intended for situations where testing has shown that the default settings are unable to, for example, fire high-throughput timeouts or retries quickly enough or with accurate enough timing precision.
Modifier and Type | Class and Description |
---|---|
static class |
TimerConfig.Builder |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NUM_BUCKETS |
static int |
DEFAULT_NUM_TIMERS |
static Duration |
DEFAULT_TICK_DURATION |
Modifier and Type | Method and Description |
---|---|
static TimerConfig.Builder |
builder()
Deprecated.
Instead of creating a new builder, please use
IoConfig.Builder.timerConfig(Consumer)
and configure the builder passed to the consumer. |
static TimerConfig |
create()
Deprecated.
Instead, please use
IoConfig.Builder.timerConfig(Consumer)
and configure the builder passed to the consumer. |
Map<String,Object> |
exportAsMap() |
int |
numBuckets() |
int |
numTimers() |
Duration |
tickDuration() |
public static final int DEFAULT_NUM_TIMERS
public static final Duration DEFAULT_TICK_DURATION
public static final int DEFAULT_NUM_BUCKETS
@Deprecated public static TimerConfig create()
IoConfig.Builder.timerConfig(Consumer)
and configure the builder passed to the consumer.@Deprecated public static TimerConfig.Builder builder()
IoConfig.Builder.timerConfig(Consumer)
and configure the builder passed to the consumer.public int numTimers()
public Duration tickDuration()
public int numBuckets()
@Stability.Internal public Map<String,Object> exportAsMap()
Copyright © 2024 Couchbase, Inc.. All rights reserved.