Package | Description |
---|---|
com.azure.core.util.polling |
Package containing API for long running operations.
|
Modifier and Type | Field and Description |
---|---|
static LongRunningOperationStatus |
LongRunningOperationStatus.FAILED
Represents that the long-running operation has failed to successfully complete, however this is still
considered as complete long-running operation, meaning that the
PollerFlux instance will report
that it is complete. |
static LongRunningOperationStatus |
LongRunningOperationStatus.IN_PROGRESS
Represents that the long-running operation is in progress and not yet complete.
|
static LongRunningOperationStatus |
LongRunningOperationStatus.NOT_STARTED
Represents that polling has not yet started for this long-running operation.
|
static LongRunningOperationStatus |
LongRunningOperationStatus.SUCCESSFULLY_COMPLETED
Represent that the long-running operation is completed successfully.
|
static LongRunningOperationStatus |
LongRunningOperationStatus.USER_CANCELLED
Represents that the long-running operation is cancelled by user, however this is still
considered as complete long-running operation.
|
Modifier and Type | Method and Description |
---|---|
static LongRunningOperationStatus |
LongRunningOperationStatus.fromString(String name,
boolean isComplete)
Creates or finds a
LongRunningOperationStatus from its string representation. |
LongRunningOperationStatus |
PollResponse.getStatus()
Represents the status of the long-running operation at the time the last polling operation finished successfully.
|
LongRunningOperationStatus |
AsyncPollResponse.getStatus()
Represents the status of the long-running operation at the time the last polling operation finished successfully.
|
Modifier and Type | Method and Description |
---|---|
PollResponse<T> |
SyncPoller.waitUntil(Duration timeout,
LongRunningOperationStatus statusToWaitFor)
Wait for the given
LongRunningOperationStatus . |
PollResponse<T> |
SyncPoller.waitUntil(LongRunningOperationStatus statusToWaitFor)
Wait for the given
LongRunningOperationStatus to receive. |
Constructor and Description |
---|
PollResponse(LongRunningOperationStatus status,
T value)
Creates a new
PollResponse with status and value. |
PollResponse(LongRunningOperationStatus status,
T value,
Duration retryAfter)
Creates a new
PollResponse with status, value, retryAfter and properties. |
Copyright © 2021 Microsoft Corporation. All rights reserved.