public class Exponential extends Object
Exponential, provides waves starting with minimum delay of
AbstractDelay.timeout is exceeded| Modifier and Type | Class and Description |
|---|---|
static class |
Exponential.Builder |
| Modifier and Type | Method and Description |
|---|---|
Duration |
nextDelay(int attempt)
Returns the new delay amount to stabilize as defined by
Duration time. |
static Exponential.Builder |
of() |
public static Exponential.Builder of()
public Duration nextDelay(int attempt)
DelayDuration time. This returns -1 to indicate that we are done
with delays from this instance Different implementations can return different
valuesDuration.ZERO to indicate
delay is completeCopyright © 2019 Amazon Web Services, Inc. All Rights Reserved.