PoolStopResizePollerAsync Class
- java.
lang. Object - com.
azure. compute. batch. PoolStopResizePollerAsync
- com.
public final class PoolStopResizePollerAsync
Async poller class used by beginStopPoolResize to implement polling logic for halting a pool resize. It emits BatchPool snapshots while polling and returns the final BatchPool on successful completion.
Completion criteria
- The pool’s AllocationState becomes
STEADY; or - The pool is no longer found (HTTP 404) — treated as success with a
nullfinal result.
Constructor Summary
| Constructor | Description |
|---|---|
| PoolStopResizePollerAsync(BatchAsyncClient batchAsyncClient, String poolId, RequestOptions options) |
Creates a new PoolStopResizePollerAsync. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Function<Polling |
getActivationOperation()
Activation operation that sends the initial stop-resize request. |
|
Bi |
getCancelOperation()
Cancellation operation — not supported for stop-resize. |
|
Function<Polling |
getFetchResultOperation()
Final result fetch operation. |
|
Function<Polling |
getPollOperation()
Poll operation to check the pool's state. |
Methods inherited from java.lang.Object
Constructor Details
PoolStopResizePollerAsync
public PoolStopResizePollerAsync(BatchAsyncClient batchAsyncClient, String poolId, RequestOptions options)
Creates a new PoolStopResizePollerAsync.
Parameters:
Method Details
getActivationOperation
public Function<PollingContext<BatchPool>,Mono<PollResponse<BatchPool>>> getActivationOperation()
Activation operation that sends the initial stop-resize request.
Returns:
getCancelOperation
public BiFunction<PollingContext<BatchPool>,PollResponse<BatchPool>,Mono<BatchPool>> getCancelOperation()
Cancellation operation — not supported for stop-resize.
Returns:
getFetchResultOperation
public Function<PollingContext<BatchPool>,Mono<BatchPool>> getFetchResultOperation()
Final result fetch operation.
Returns:
getPollOperation
public Function<PollingContext<BatchPool>,Mono<PollResponse<BatchPool>>> getPollOperation()
Poll operation to check the pool's state.
Returns: