| Package | Description |
|---|---|
| com.azure.core.util.polling |
Package containing API for Long Running Operations.
|
| Modifier and Type | Field and Description |
|---|---|
static PollResponse.OperationStatus |
PollResponse.OperationStatus.FAILED
Represents that this long-running operation has failed to successfully complete, however this is still
considered as complete long-running operation, meaning that the
Poller instance will report that it is complete. |
static PollResponse.OperationStatus |
PollResponse.OperationStatus.IN_PROGRESS
Represents that this long-running operation is in progress and not yet complete.
|
static PollResponse.OperationStatus |
PollResponse.OperationStatus.NOT_STARTED
Represents that polling has not yet started for this long-running operation.
|
static PollResponse.OperationStatus |
PollResponse.OperationStatus.SUCCESSFULLY_COMPLETED
Represent that this long-running operation is completed successfully.
|
static PollResponse.OperationStatus |
PollResponse.OperationStatus.USER_CANCELLED
Represents that this long-running operation is cancelled by user, however this is still
considered as complete long-running operation.
|
| Modifier and Type | Method and Description |
|---|---|
static PollResponse.OperationStatus |
PollResponse.OperationStatus.fromString(String name)
Creates or finds a
PollResponse.OperationStatus from its string representation. |
PollResponse.OperationStatus |
PollResponse.getStatus()
Represents the status of the long-running operation at the time the last polling operation finished successfully.
|
PollResponse.OperationStatus |
Poller.getStatus()
Current known status as a result of last poll event or last response from a manual polling.
|
| Modifier and Type | Method and Description |
|---|---|
PollResponse<T> |
Poller.blockUntil(PollResponse.OperationStatus statusToBlockFor)
Blocks indefinitely until given
PollResponse.OperationStatus is received. |
PollResponse<T> |
Poller.blockUntil(PollResponse.OperationStatus statusToBlockFor,
Duration timeout)
Blocks until given
PollResponse.OperationStatus is received or a timeout expires if provided. |
| Constructor and Description |
|---|
PollResponse(PollResponse.OperationStatus status,
T value)
Creates a new
PollResponse with status and value. |
PollResponse(PollResponse.OperationStatus status,
T value,
Duration retryAfter)
Creates a new
PollResponse with status, value and retryAfter. |
PollResponse(PollResponse.OperationStatus status,
T value,
Duration retryAfter,
Map<Object,Object> properties)
Creates a new
PollResponse with status, value, retryAfter and properties. |
Copyright © 2019 Microsoft Corporation. All rights reserved.