Class LinkWaiters
- java.lang.Object
-
- com.oracle.bmc.tenantmanagercontrolplane.LinkWaiters
-
-
Constructor Summary
Constructors Constructor Description LinkWaiters(ExecutorService executorService, Link client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Waiter<GetLinkRequest,GetLinkResponse>
forLink(GetLinkRequest request, LifecycleState... targetStates)
Creates a newWaiter
using the default configuration.Waiter<GetLinkRequest,GetLinkResponse>
forLink(GetLinkRequest request, LifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.Waiter<GetLinkRequest,GetLinkResponse>
forLink(GetLinkRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, LifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.
-
-
-
Constructor Detail
-
LinkWaiters
public LinkWaiters(ExecutorService executorService, Link client)
-
-
Method Detail
-
forLink
public Waiter<GetLinkRequest,GetLinkResponse> forLink(GetLinkRequest request, LifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetState
- the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forLink
public Waiter<GetLinkRequest,GetLinkResponse> forLink(GetLinkRequest request, LifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forLink
public Waiter<GetLinkRequest,GetLinkResponse> forLink(GetLinkRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, LifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to usetargetStates
- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
-