Package com.oracle.bmc.waiter
Class ExponentialBackoffDelayStrategyWithJitter
- java.lang.Object
-
- com.oracle.bmc.waiter.ExponentialBackoffDelayStrategy
-
- com.oracle.bmc.waiter.ExponentialBackoffDelayStrategyWithJitter
-
- All Implemented Interfaces:
DelayStrategy
public class ExponentialBackoffDelayStrategyWithJitter extends ExponentialBackoffDelayStrategy
Delay strategy that increases the wait time exponentially until a max time has been reached.
-
-
Constructor Summary
Constructors Constructor Description ExponentialBackoffDelayStrategyWithJitter(long maxDelayInMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longnextDelay(WaiterConfiguration.WaitContext context)Returns the amount of time to wait (in millis) before making another poll attempt.-
Methods inherited from class com.oracle.bmc.waiter.ExponentialBackoffDelayStrategy
toString
-
-
-
-
Method Detail
-
nextDelay
public long nextDelay(WaiterConfiguration.WaitContext context)
Description copied from interface:DelayStrategyReturns the amount of time to wait (in millis) before making another poll attempt.- Specified by:
nextDelayin interfaceDelayStrategy- Overrides:
nextDelayin classExponentialBackoffDelayStrategy- Parameters:
context- The context after the last attempt.- Returns:
- The amount of time to wait, in millis.
-
-