Top Fields Constructors Methods
com.oracle.bmc.waiter

public Class Waiters

extends Object
Class Inheritance
Imports
jakarta.annotation.Nullable

Field Summary

Modifier and TypeField and Description
public static final DelayStrategy
DEFAULT_POLLING_DELAY_STRATEGY

Default polling delay strategy is to use exponential backoff with a max of 30 seconds between attempts.

public static final TerminationStrategy
DEFAULT_POLLING_TERMINATION_STRATEGY

Default polling termination strategy is to wait up to 20 mins.

public static final BmcGenericWaiter
DEFAULT_POLLING_WAITER

The default OCI polling waiter that will be used.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static BmcGenericWaiter

Returns:

A new waiter instance.
newWaiter
(TerminationStrategy
The termination strategy.
terminationStrategy
,
DelayStrategy
The delay strategy.
delayStrategy
)

Creates a new waiter using the given strategies.

private static long
secondsToMillis(int seconds)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_POLLING_DELAY_STRATEGYback to summary
public static final DelayStrategy DEFAULT_POLLING_DELAY_STRATEGY

Default polling delay strategy is to use exponential backoff with a max of 30 seconds between attempts.

DEFAULT_POLLING_TERMINATION_STRATEGYback to summary
public static final TerminationStrategy DEFAULT_POLLING_TERMINATION_STRATEGY

Default polling termination strategy is to wait up to 20 mins.

DEFAULT_POLLING_WAITERback to summary
public static final BmcGenericWaiter DEFAULT_POLLING_WAITER

The default OCI polling waiter that will be used. Configured using DEFAULT_POLLING_TERMINATION_STRATEGY and DEFAULT_POLLING_DELAY_STRATEGY.

Constructor Detail

Waitersback to summary
public Waiters()

Method Detail

newWaiterback to summary
public static BmcGenericWaiter newWaiter(TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)

Creates a new waiter using the given strategies. If any of the args are null, the default strategy listed in this class will be used.

Parameters
terminationStrategy:TerminationStrategy

The termination strategy.

delayStrategy:DelayStrategy

The delay strategy.

Returns:BmcGenericWaiter

A new waiter instance.

secondsToMillisback to summary
private static long secondsToMillis(int seconds)