public class ExponentialBackoffDelayStrategy extends Object implements DelayStrategy
Delay strategy that increases the wait time exponentially until a max time has been reached.
Constructor and Description |
---|
ExponentialBackoffDelayStrategy(long maxDelayInMillis) |
Modifier and Type | Method and Description |
---|---|
long |
nextDelay(WaiterConfiguration.WaitContext context)
Returns the amount of time to wait (in millis) before making another poll attempt.
|
String |
toString() |
@ConstructorProperties(value="maxDelayInMillis") public ExponentialBackoffDelayStrategy(long maxDelayInMillis)
public long nextDelay(WaiterConfiguration.WaitContext context)
DelayStrategy
Returns the amount of time to wait (in millis) before making another poll attempt.
nextDelay
in interface DelayStrategy
context
- The context after the last attempt.Copyright © 2016–2024. All rights reserved.