public class ExponentialBackoffDelayStrategyWithJitter extends ExponentialBackoffDelayStrategy
Delay strategy that increases the wait time exponentially until a max time has been reached.
| Constructor and Description |
|---|
ExponentialBackoffDelayStrategyWithJitter(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.
|
toStringpublic ExponentialBackoffDelayStrategyWithJitter(long maxDelayInMillis)
public long nextDelay(WaiterConfiguration.WaitContext context)
DelayStrategyReturns the amount of time to wait (in millis) before making another poll attempt.
nextDelay in interface DelayStrategynextDelay in class ExponentialBackoffDelayStrategycontext - The context after the last attempt.Copyright © 2016–2024. All rights reserved.