Top Description Fields Constructors Methods
com.oracle.bmc.waiter

public Class FixedTimeDelayStrategy

extends Object
implements DelayStrategy
Class Inheritance
All Implemented Interfaces
com.oracle.bmc.waiter.DelayStrategy
Imports
com.oracle.bmc.waiter.WaiterConfiguration.WaitContext

Delay strategy that waits a constant amount of time between poll attempts.

Field Summary

Modifier and TypeField and Description
private final long
timeBetweenAttempsInMillis

The amount of time to wait (in millis) between each condition check.

Constructor Summary

AccessConstructor and Description
public
FixedTimeDelayStrategy(final long timeBetweenAttempsInMillis)

Method Summary

Modifier and TypeMethod and Description
public long
nextDelay(WaiterConfiguration.WaitContext
The context after the last attempt.
context
)

Implements com.oracle.bmc.waiter.DelayStrategy.nextDelay.

Returns the amount of time to wait (in millis) before making another poll attempt.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

timeBetweenAttempsInMillisback to summary
private final long timeBetweenAttempsInMillis

The amount of time to wait (in millis) between each condition check.

Constructor Detail

FixedTimeDelayStrategyback to summary
public FixedTimeDelayStrategy(final long timeBetweenAttempsInMillis)
Annotations
@java.beans.ConstructorProperties

Method Detail

nextDelayback to summary
public long nextDelay(WaiterConfiguration.WaitContext context)

Implements com.oracle.bmc.waiter.DelayStrategy.nextDelay.

Doc from com.oracle.bmc.waiter.DelayStrategy.nextDelay.

Returns the amount of time to wait (in millis) before making another poll attempt.

Parameters
context:WaiterConfiguration.WaitContext

The context after the last attempt.

Returns:long

The amount of time to wait, in millis.

Annotations
@Override