T
- The type of poll response value.U
- The type of the final result of long-running operation.public final class AsyncPollResponse<T,U> extends Object
PollerFlux
that asynchronously polls
a long-running operation (LRO). An AsyncPollResponse event provides information such as the current
status
of the LRO, any value
returned
in the poll, as well as other useful information provided by the service.
AsyncPollResponse also exposes AsyncPollResponse.cancelOperation()
method to cancel the long-running operation
from reactor operator chain and AsyncPollResponse.getFinalResult()
method that returns final result of
the long-running operation.Modifier and Type | Method and Description |
---|---|
Mono<T> |
cancelOperation() |
Mono<U> |
getFinalResult() |
LongRunningOperationStatus |
getStatus()
Represents the status of the long-running operation at the time the last polling operation finished successfully.
|
T |
getValue()
The value returned as a result of the last successful poll operation.
|
public LongRunningOperationStatus getStatus()
LongRunningOperationStatus
representing the result of the poll operation.public T getValue()
public Mono<T> cancelOperation()
Copyright © 2019 Microsoft Corporation. All rights reserved.