public final enum
FutureState
The state of an asynchronous operation.
Inherited Methods
From
class
java.lang.Enum
final
Object
|
clone()
|
final
int
|
compareTo(FutureState arg0)
|
int
|
compareTo(Object arg0)
|
final
Optional<EnumDesc<FutureState>>
|
describeConstable()
|
final
boolean
|
equals(Object arg0)
|
final
void
|
finalize()
|
final
Class<FutureState>
|
getDeclaringClass()
|
final
int
|
hashCode()
|
final
String
|
name()
|
final
int
|
ordinal()
|
String
|
toString()
|
static
<T extends Enum<T>>
T
|
From
class
java.lang.Object
From
interface
java.lang.constant.Constable
abstract
Optional<? extends ConstantDesc>
|
describeConstable()
|
From
interface
java.lang.Comparable
abstract
int
|
compareTo(FutureState arg0)
|
Enum Values
CANCELLED
public static final FutureState CANCELLED
The operation has been cancelled. Any associated callback will never be invoked.
DONE
public static final FutureState DONE
The operation is complete and the result is available. If a callback was associated, it will soon be invoked with the result on the main thread, if it hasn't been invoked already.
PENDING
public static final FutureState PENDING
The operation is still pending. The result of the operation isn't available yet, and any associated callback hasn't yet been dispatched or invoked.
Do not use this to check if the operation can be cancelled as the state can change from
another thread between the call to VpsAvailabilityFuture.getState()
and VpsAvailabilityFuture.cancel()