Share via


JobScheduleDeletePollerAsync Class

  • java.lang.Object
    • com.azure.compute.batch.JobScheduleDeletePollerAsync

public final class JobScheduleDeletePollerAsync

Async poller class used by beginDeleteJobSchedule to implement polling logic for deleting a BatchJobSchedule. Returns BatchJobSchedule values during polling and null upon successful deletion.

Constructor Summary

Constructor Description
JobScheduleDeletePollerAsync(BatchAsyncClient batchAsyncClient, String jobScheduleId, RequestOptions options)

Creates a new JobScheduleDeletePollerAsync.

Method Summary

Modifier and Type Method and Description
Function<PollingContext<BatchJobSchedule>,Mono<PollResponse<BatchJobSchedule>>> getActivationOperation()

Activation operation to start the delete.

BiFunction<PollingContext<BatchJobSchedule>,PollResponse<BatchJobSchedule>,Mono<BatchJobSchedule>> getCancelOperation()

Cancel operation (not supported for delete).

Function<PollingContext<BatchJobSchedule>,Mono<Void>> getFetchResultOperation()

Final result fetch operation (returns null; not required).

Function<PollingContext<BatchJobSchedule>,Mono<PollResponse<BatchJobSchedule>>> getPollOperation()

Poll operation to check if the job schedule is still being deleted or is gone.

Methods inherited from java.lang.Object

Constructor Details

JobScheduleDeletePollerAsync

public JobScheduleDeletePollerAsync(BatchAsyncClient batchAsyncClient, String jobScheduleId, RequestOptions options)

Creates a new JobScheduleDeletePollerAsync.

Parameters:

batchAsyncClient - The BatchAsyncClient used to interact with the Batch service.
jobScheduleId - The ID of the Job Schedule being deleted.
options - Optional request options for service calls.

Method Details

getActivationOperation

public Function<PollingContext<BatchJobSchedule>,Mono<PollResponse<BatchJobSchedule>>> getActivationOperation()

Activation operation to start the delete.

Returns:

A function that initiates the delete request and returns a PollResponse with IN_PROGRESS status.

getCancelOperation

public BiFunction<PollingContext<BatchJobSchedule>,PollResponse<BatchJobSchedule>,Mono<BatchJobSchedule>> getCancelOperation()

Cancel operation (not supported for delete).

Returns:

A function that always returns an empty Mono, indicating cancellation is unsupported.

getFetchResultOperation

public Function<PollingContext<BatchJobSchedule>,Mono<Void>> getFetchResultOperation()

Final result fetch operation (returns null; not required).

Returns:

A function that returns an empty Mono, indicating no final fetch is required.

getPollOperation

public Function<PollingContext<BatchJobSchedule>,Mono<PollResponse<BatchJobSchedule>>> getPollOperation()

Poll operation to check if the job schedule is still being deleted or is gone.

Returns:

A function that polls the job schedule and returns a PollResponse with the current operation status.

Applies to