Package | Description |
---|---|
com.couchbase.client.core.retry.reactor |
Modifier and Type | Field and Description |
---|---|
static Jitter |
Jitter.NO_JITTER |
static Jitter |
Jitter.RANDOM_JITTER |
Modifier and Type | Method and Description |
---|---|
static Jitter |
Jitter.noJitter()
Jitter function that is a no-op.
|
static Jitter |
Jitter.random()
Jitter function that applies a random jitter with a factor of 0.5, generating a
backoff between
[d - d*0.5; d + d*0.5] (but still within the limits of
[BackoffDelay.minDelay() ; BackoffDelay.maxDelay() ]. |
static Jitter |
Jitter.random(double randomFactor)
Jitter function that applies a random jitter with a provided [0; 1] factor (default 0.5),
generating a backoff between
[d - d*factor; d + d*factor] (but still within
the limits of [BackoffDelay.minDelay() ; BackoffDelay.maxDelay() ]. |
Modifier and Type | Method and Description |
---|---|
Repeat<T> |
DefaultRepeat.jitter(Jitter jitter) |
Retry<T> |
DefaultRetry.jitter(Jitter jitter)
Deprecated.
|
Repeat<T> |
Repeat.jitter(Jitter jitter)
Returns a repeat function that applies jitter to the backoff delay.
|
Retry<T> |
Retry.jitter(Jitter jitter)
Deprecated.
Returns a retry function that applies jitter to the backoff delay.
|
Copyright © 2024 Couchbase, Inc.. All rights reserved.