Share via


PoolResizePollerAsync Class

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

public final class PoolResizePollerAsync

Async poller class used by beginResizePool to implement polling logic for resizing a BatchPool. Returns BatchPool values during polling and the final BatchPool upon successful completion.

Constructor Summary

Constructor Description
PoolResizePollerAsync(BatchAsyncClient batchAsyncClient, String poolId, BatchPoolResizeParameters parameters, RequestOptions options)

Creates a new PoolResizePollerAsync.

Method Summary

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

Activation operation to start the resize.

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

Cancel operation (not supported for resize).

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

Final result fetch operation.

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

Poll operation to check the pool's allocation state.

Methods inherited from java.lang.Object

Constructor Details

PoolResizePollerAsync

public PoolResizePollerAsync(BatchAsyncClient batchAsyncClient, String poolId, BatchPoolResizeParameters parameters, RequestOptions options)

Creates a new PoolResizePollerAsync.

Parameters:

batchAsyncClient - The BatchAsyncClient used to interact with the Batch service.
poolId - The ID of the pool being resized.
parameters - The resize parameters.
options - Optional request options for service calls.

Method Details

getActivationOperation

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

Activation operation to start the resize.

Returns:

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

getCancelOperation

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

Cancel operation (not supported for resize).

Returns:

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

getFetchResultOperation

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

Final result fetch operation.

Returns:

A function that returns the final BatchPool result from the latest poll response.

getPollOperation

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

Poll operation to check the pool's allocation state.

Returns:

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

Applies to