Package com.couchbase.client.core.env
Class TimerConfig
java.lang.Object
com.couchbase.client.core.env.TimerConfig
Configures the internal Timer, which asynchronous retries and timeouts fire on.
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.
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TimerConfig.Builder
builder()
Deprecated.static TimerConfig
create()
Deprecated.Instead, please useIoConfig.Builder.timerConfig(Consumer)
and configure the builder passed to the consumer.int
int
-
Field Details
-
DEFAULT_NUM_TIMERS
public static final int DEFAULT_NUM_TIMERS- See Also:
-
DEFAULT_TICK_DURATION
-
DEFAULT_NUM_BUCKETS
public static final int DEFAULT_NUM_BUCKETS- See Also:
-
-
Method Details
-
create
Deprecated.Instead, please useIoConfig.Builder.timerConfig(Consumer)
and configure the builder passed to the consumer. -
builder
Deprecated.Instead of creating a new builder, please useIoConfig.Builder.timerConfig(Consumer)
and configure the builder passed to the consumer. -
numTimers
public int numTimers() -
tickDuration
-
numBuckets
public int numBuckets() -
exportAsMap
-
IoConfig.Builder.timerConfig(Consumer)
and configure the builder passed to the consumer.