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

public Class ExponentialBackoffDelayStrategy

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

Delay strategy that increases the wait time exponentially until a max time has been reached.

Field Summary

Modifier and TypeField and Description
private final long

Constructor Summary

AccessConstructor and Description
public
ExponentialBackoffDelayStrategy(final long maxDelayInMillis)

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.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

maxDelayInMillisback to summary
private final long maxDelayInMillis

Constructor Detail

ExponentialBackoffDelayStrategyback to summary
public ExponentialBackoffDelayStrategy(final long maxDelayInMillis)
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
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override