Future.State

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.

Summary

Enum values

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

Enum values

CANCELLED

public static final Future.State CANCELLED

The task was cancelled.

FAILED

public static final Future.State FAILED

The task completed with an exception.

RUNNING

public static final Future.State RUNNING

The task has not completed.

SUCCESS

public static final Future.State SUCCESS

The task completed with a result.

See also:

Public methods

valueOf

public static Future.State valueOf (String name)

Parameters
name String

Returns
Future.State

values

public static final State[] values ()

Returns
State[]