JobScheduleTerminatePollerAsync Class
- java.
lang. Object - com.
azure. compute. batch. JobScheduleTerminatePollerAsync
- com.
public final class JobScheduleTerminatePollerAsync
Async poller class used by beginTerminateJobSchedule to implement polling logic for terminating a BatchJobSchedule. Returns BatchJobSchedule values during polling and as the final result.
Constructor Summary
| Constructor | Description |
|---|---|
| JobScheduleTerminatePollerAsync(BatchAsyncClient batchAsyncClient, String jobScheduleId, RequestOptions options) |
Creates a new JobScheduleTerminatePollerAsync. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Function<Polling |
getActivationOperation()
Activation operation to start the termination. |
|
Bi |
getCancelOperation()
Cancel operation (not supported for terminate). |
|
Function<Polling |
getFetchResultOperation()
Final result fetch operation. |
|
Function<Polling |
getPollOperation()
Poll operation to check the job schedule's termination state. |
Methods inherited from java.lang.Object
Constructor Details
JobScheduleTerminatePollerAsync
public JobScheduleTerminatePollerAsync(BatchAsyncClient batchAsyncClient, String jobScheduleId, RequestOptions options)
Creates a new JobScheduleTerminatePollerAsync.
Parameters:
Method Details
getActivationOperation
public Function<PollingContext<BatchJobSchedule>,Mono<PollResponse<BatchJobSchedule>>> getActivationOperation()
Activation operation to start the termination.
Returns:
getCancelOperation
public BiFunction<PollingContext<BatchJobSchedule>,PollResponse<BatchJobSchedule>,Mono<BatchJobSchedule>> getCancelOperation()
Cancel operation (not supported for terminate).
Returns:
getFetchResultOperation
public Function<PollingContext<BatchJobSchedule>,Mono<BatchJobSchedule>> getFetchResultOperation()
Final result fetch operation.
Returns:
getPollOperation
public Function<PollingContext<BatchJobSchedule>,Mono<PollResponse<BatchJobSchedule>>> getPollOperation()
Poll operation to check the job schedule's termination state.
Returns: