public
static
final
enum
Future.State
extends Enum<Future.State>
| java.lang.Object | ||
| ↳ | java.lang.Enum<java.util.concurrent.Future.State> | |
| ↳ | java.util.concurrent.Future.State | |
Represents the computation state.
Future.State CANCELLED
The task was cancelled.
Future.State FAILED
The task completed with an exception.
Future.State RUNNING
The task has not completed.
Future.State SUCCESS
The task completed with a result.
Public methods | |
|---|---|
static
Future.State
|
valueOf(String name)
|
static
final
State[]
|
values()
|
Inherited methods | |
|---|---|
public static final Future.State CANCELLED
The task was cancelled.
See also:
public static final Future.State FAILED
The task completed with an exception.
See also:
public static final Future.State SUCCESS
The task completed with a result.
See also:
public static Future.State valueOf (String name)
| Parameters | |
|---|---|
name |
String |
| Returns | |
|---|---|
Future.State |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-13 UTC.