Package com.oracle.bmc.resourcescheduler
Class ScheduleWaiters
- java.lang.Object
-
- com.oracle.bmc.resourcescheduler.ScheduleWaiters
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20240430") public class ScheduleWaiters extends Object
Collection of helper methods to produceWaiter
s for different resources of Schedule.The default configuration used is defined by
com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER
.
-
-
Constructor Summary
Constructors Constructor Description ScheduleWaiters(ExecutorService executorService, Schedule client)
-
Method Summary
-
-
-
Constructor Detail
-
ScheduleWaiters
public ScheduleWaiters(ExecutorService executorService, Schedule client)
-
-
Method Detail
-
forSchedule
public Waiter<GetScheduleRequest,GetScheduleResponse> forSchedule(GetScheduleRequest request, Schedule.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
-
forSchedule
public Waiter<GetScheduleRequest,GetScheduleResponse> forSchedule(GetScheduleRequest request, Schedule.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
-
forSchedule
public Waiter<GetScheduleRequest,GetScheduleResponse> forSchedule(GetScheduleRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, Schedule.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
-
forWorkRequest
public Waiter<GetWorkRequestRequest,GetWorkRequestResponse> forWorkRequest(GetWorkRequestRequest request)
Creates a newWaiter
using default configuration.- Parameters:
request
- the request to send- Returns:
- a new Waiter instance
-
forWorkRequest
public Waiter<GetWorkRequestRequest,GetWorkRequestResponse> forWorkRequest(GetWorkRequestRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- the to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
-