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 long
nextDelay(WaiterConfiguration.WaitContext context)
Returns the amount of time to wait (in millis) before making another poll attempt.String
toString()
-
-
-
Constructor Detail
-
ExponentialBackoffDelayStrategy
@ConstructorProperties("maxDelayInMillis") public ExponentialBackoffDelayStrategy(long maxDelayInMillis)
-
-
Method Detail
-
nextDelay
public long nextDelay(WaiterConfiguration.WaitContext context)
Description copied from interface:DelayStrategy
Returns the amount of time to wait (in millis) before making another poll attempt.- Specified by:
nextDelay
in interfaceDelayStrategy
- Parameters:
context
- The context after the last attempt.- Returns:
- The amount of time to wait, in millis.
-
-