Package com.oracle.bmc.zpr
Class ZprWaiters
- java.lang.Object
-
- com.oracle.bmc.zpr.ZprWaiters
-
-
Constructor Summary
Constructors Constructor Description ZprWaiters(ExecutorService executorService, Zpr client)
-
Method Summary
-
-
-
Constructor Detail
-
ZprWaiters
public ZprWaiters(ExecutorService executorService, Zpr client)
-
-
Method Detail
-
forConfiguration
public Waiter<GetConfigurationRequest,GetConfigurationResponse> forConfiguration(GetConfigurationRequest request, Configuration.LifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetStates
- 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 Waiter instance
-
forConfiguration
public Waiter<GetConfigurationRequest,GetConfigurationResponse> forConfiguration(GetConfigurationRequest request, Configuration.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
-
forConfiguration
public Waiter<GetConfigurationRequest,GetConfigurationResponse> forConfiguration(GetConfigurationRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, Configuration.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 com.oracle.bmc.waiter.Waiter instance
-
forZprPolicy
public Waiter<GetZprPolicyRequest,GetZprPolicyResponse> forZprPolicy(GetZprPolicyRequest request, ZprPolicy.LifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetStates
- 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 Waiter instance
-
forZprPolicy
public Waiter<GetZprPolicyRequest,GetZprPolicyResponse> forZprPolicy(GetZprPolicyRequest request, ZprPolicy.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
-
forZprPolicy
public Waiter<GetZprPolicyRequest,GetZprPolicyResponse> forZprPolicy(GetZprPolicyRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, ZprPolicy.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 com.oracle.bmc.waiter.Waiter instance
-
-