Class Exponential
java.lang.Object
software.amazon.cloudformation.proxy.delay.Exponential
- All Implemented Interfaces:
Delay
Exponential, provides waves starting with minimum delay of
AbstractDelay.timeout is exceeded-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionnextDelay(int attempt) Returns the new delay amount to stabilize as defined byDurationtime.static Exponential.Builderof()
-
Method Details
-
of
-
nextDelay
Description copied from interface:DelayReturns the new delay amount to stabilize as defined byDurationtime. This returns -1 to indicate that we are done with delays from this instance Different implementations can return different values- Parameters:
attempt- , starts with 1- Returns:
- the next amount to wait for or
Duration.ZEROto indicate delay is complete
-