Send feedback
FutureState
Stay organized with collections
Save and categorize content based on your preferences.
The state of an asynchronous operation.
Inherited Methods
From class
java.lang.Enum
final
Object
clone ()
final
int
int
final
Optional<EnumDesc<FutureState >>
describeConstable ()
final
boolean
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
Object
clone ()
boolean
void
finalize ()
final
Class <?>
getClass ()
int
hashCode ()
final
void
notify ()
final
void
notifyAll ()
String
toString ()
final
void
wait (long arg0, int arg1)
final
void
wait (long arg0)
final
void
wait ()
From interface
java.lang.constant.Constable
abstract
Optional<? extends ConstantDesc>
describeConstable ()
From interface
java.lang.Comparable
Enum Values
public
static
final
FutureState
CANCELLED
CANCELLED
public static final FutureState CANCELLED
The operation has been cancelled. Any associated callback will never be invoked.
public
static
final
FutureState
DONE
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.
public
static
final
FutureState
PENDING
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()
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-06-28 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"lastModified": "Last updated 2023-06-28 UTC.",
"confidential": False
}