Package com.couchbase.client.core.env
Class TimerConfig.Builder
java.lang.Object
com.couchbase.client.core.env.TimerConfig.Builder
- Enclosing class:
- TimerConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
numBuckets
(int numBuckets) Internally, each Timer divides time into a number of buckets, which this setting controls.numTimers
(int numTimers) Configures multiple parallel Timers, allowing more throughput of retries and timeouts.tickDuration
(Duration tickDuration) Configures the time between each 'tick' of the Timer(s).
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
numTimers
Configures multiple parallel Timers, allowing more throughput of retries and timeouts.It defaults to 1.
-
tickDuration
Configures the time between each 'tick' of the Timer(s).Timeouts and retries can only fire as accurately as this resolution. If reducing the value, users may want to increase the
numBuckets(int)
setting.It defaults to 10 milliseconds.
-
numBuckets
Internally, each Timer divides time into a number of buckets, which this setting controls.It defaults to 512.
If it's expected that many timeouts or retries will be firing, users may want to increase this setting.
-
build
-