public final class LongRunningOperationStatus extends ExpandableStringEnum<LongRunningOperationStatus>
SUCCESSFULLY_COMPLETED
,
USER_CANCELLED
or FAILED
.Modifier and Type | Field and Description |
---|---|
static 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 |
IN_PROGRESS
Represents that the long-running operation is in progress and not yet complete.
|
static LongRunningOperationStatus |
NOT_STARTED
Represents that polling has not yet started for this long-running operation.
|
static LongRunningOperationStatus |
SUCCESSFULLY_COMPLETED
Represent that the long-running operation is completed successfully.
|
static LongRunningOperationStatus |
USER_CANCELLED
Represents that the long-running operation is cancelled by user, however this is still
considered as complete long-running operation.
|
Constructor and Description |
---|
LongRunningOperationStatus() |
Modifier and Type | Method and Description |
---|---|
static LongRunningOperationStatus |
fromString(String name,
boolean isComplete)
Creates or finds a
LongRunningOperationStatus from its string representation. |
boolean |
isComplete()
Returns a boolean to represent if the operation is in a completed state or not.
|
equals, fromString, hashCode, toString, values
public static final LongRunningOperationStatus NOT_STARTED
public static final LongRunningOperationStatus IN_PROGRESS
public static final LongRunningOperationStatus SUCCESSFULLY_COMPLETED
public static final LongRunningOperationStatus FAILED
PollerFlux
instance will report
that it is complete.public static final LongRunningOperationStatus USER_CANCELLED
public static LongRunningOperationStatus fromString(String name, boolean isComplete)
LongRunningOperationStatus
from its string representation.name
- a name to look forisComplete
- a status to indicate if the operation is complete or not.LongRunningOperationStatus
IllegalArgumentException
- if name
matches a pre-configured LongRunningOperationStatus
but
isComplete
doesn't match its pre-configured complete status.public boolean isComplete()
Copyright © 2021 Microsoft Corporation. All rights reserved.