Package com.oracle.bmc.waiter
Class FixedTimeDelayStrategy
- java.lang.Object
-
- com.oracle.bmc.waiter.FixedTimeDelayStrategy
-
- All Implemented Interfaces:
DelayStrategy
public class FixedTimeDelayStrategy extends Object implements DelayStrategy
Delay strategy that waits a constant amount of time between poll attempts.
-
-
Constructor Summary
Constructors Constructor Description FixedTimeDelayStrategy(long timeBetweenAttempsInMillis)
-
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.
-
-
-
Constructor Detail
-
FixedTimeDelayStrategy
@ConstructorProperties("timeBetweenAttempsInMillis") public FixedTimeDelayStrategy(long timeBetweenAttempsInMillis)
-
-
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.
-
-