public class Backoff extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Backoff.Strategy
Policy for specifying custom backoff behavior for retries.
|
Modifier and Type | Method and Description |
---|---|
static Backoff.Strategy |
constant(long delayMilliseconds) |
static Backoff.Strategy |
exponential(long initialDelayMilliseconds,
long maxDelayMilliseconds) |
public static Backoff.Strategy constant(long delayMilliseconds)
public static Backoff.Strategy exponential(long initialDelayMilliseconds, long maxDelayMilliseconds)