public class ShiftByMultipleOf extends MultipleOf
AbstractDelay.timeout has been reached.
After which it will return Duration.ZERO| Modifier and Type | Class and Description |
|---|---|
static class |
ShiftByMultipleOf.Builder |
| Modifier and Type | Method and Description |
|---|---|
Duration |
nextDelay(int attempt)
Returns the new delay amount to stabilize as defined by
Duration time. |
static ShiftByMultipleOf.Builder |
shiftedOf() |
multipleOfpublic static ShiftByMultipleOf.Builder shiftedOf()
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
valuesnextDelay in interface DelaynextDelay in class MultipleOfDuration.ZERO to indicate
delay is completeCopyright © 2019 Amazon Web Services, Inc. All Rights Reserved.