Create infinite backoffs that start with start
and change by f
.
Create infinite backoffs that start with start
and change by f
.
This is an exact version of Stream.iterate.
See constant for a Java friendly API
Alias for const, which is a reserved word in Java
Create infinite backoffs that have jitter with a random distribution
between start
and 3 times the previously selected value, capped at maximum
.
Create infinite backoffs that have jitter with a random distribution
between start
and 3 times the previously selected value, capped at maximum
.
must be greater than 0 and less than or equal to maximum
.
must be greater than 0 and greater than or equal to start
.
exponentialJittered and equalJittered for alternative jittered approaches.
Create infinite backoffs that keep half of the exponential growth, and jitter between 0 and that amount.
Create infinite backoffs that keep half of the exponential growth, and jitter between 0 and that amount.
exponentialJittered and decorrelatedJittered for alternative jittered approaches.
Create infinite backoffs that grow exponentially by multiplier
, capped at maximum
.
Create infinite backoffs that grow exponentially by multiplier
, capped at maximum
.
exponentialJittered for a version that incorporates jitter.
Create infinite backoffs that grow exponentially by multiplier
.
Create infinite backoffs that grow exponentially by multiplier
.
exponentialJittered for a version that incorporates jitter.
Create infinite backoffs that grow exponentially by 2, capped at maximum
,
with each backoff having jitter, or randomness, between 0 and the
exponential backoff value.
Create infinite backoffs that grow exponentially by 2, capped at maximum
,
with each backoff having jitter, or randomness, between 0 and the
exponential backoff value.
must be greater than 0 and less than or equal to maximum
.
must be greater than 0 and greater than or equal to start
.
decorrelatedJittered and equalJittered for alternative jittered approaches.
Create infinite backoffs with values produced by a given generation function.
Create infinite backoffs with values produced by a given generation function.
This is an exact version of Stream.continually.
Create infinite backoffs that grow linear by offset
, capped at maximum
.
Create infinite backoffs that grow linear by offset
.
Convert a Stream of Durations into a Java-friendly representation.
Implements various backoff strategies.
Strategies are defined by a
Stream[Duration]
and are intended for use with RetryFilter.apply and RetryPolicy.backoff to determine the duration after which a request is to be retried.All backoffs created by factory methods on this object are infinite. Use
Stream.take
to make them terminate.