Package com.oracle.bmc.waiter
Class ExponentialBackoffDelayStrategy
- java.lang.Object
-
- com.oracle.bmc.waiter.ExponentialBackoffDelayStrategy
-
- All Implemented Interfaces:
DelayStrategy
- Direct Known Subclasses:
ExponentialBackoffDelayStrategyWithJitter
public class ExponentialBackoffDelayStrategy extends Object implements DelayStrategy
Delay strategy that increases the wait time exponentially until a max time has been reached.
-
-
Constructor Summary
Constructors Constructor Description ExponentialBackoffDelayStrategy(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.StringtoString()
-
-
-
Constructor Detail
-
ExponentialBackoffDelayStrategy
@ConstructorProperties("maxDelayInMillis") public ExponentialBackoffDelayStrategy(long maxDelayInMillis)
-
-
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- Parameters:
context- The context after the last attempt.- Returns:
- The amount of time to wait, in millis.
-
-