Share via


PoolDeletePollerAsync Class

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

public final class PoolDeletePollerAsync

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

Constructor Summary

Constructor Description
PoolDeletePollerAsync(BatchAsyncClient batchAsyncClient, String poolId, RequestOptions options)

Creates a new PoolDeletePollerAsync.

Method Summary

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

Activation operation to start the delete.

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

Cancel operation (not supported for delete).

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

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

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

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

Methods inherited from java.lang.Object

Constructor Details

PoolDeletePollerAsync

public PoolDeletePollerAsync(BatchAsyncClient batchAsyncClient, String poolId, RequestOptions options)

Creates a new PoolDeletePollerAsync.

Parameters:

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

Method Details

getActivationOperation

public Function<PollingContext<BatchPool>,Mono<PollResponse<BatchPool>>> 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<BatchPool>,PollResponse<BatchPool>,Mono<BatchPool>> getCancelOperation()

Cancel operation (not supported for delete).

Returns:

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

getFetchResultOperation

public Function<PollingContext<BatchPool>,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<BatchPool>,Mono<PollResponse<BatchPool>>> getPollOperation()

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

Returns:

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

Applies to