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.
|
toString
public ExponentialBackoffDelayStrategyWithJitter(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
nextDelay
in class ExponentialBackoffDelayStrategy
context
- The context after the last attempt.Copyright © 2016–2024. All rights reserved.