public static enum Task.State extends java.lang.Enum<Task.State>
Enum Constant and Description |
---|
CANCELLED
The task has been cancelled and may be stopped or will stop.
|
FAILED
The task has failed.
|
RUNNING
The task is currently running.
|
SCHEDULED
The task has been scheduled to run but is not running yet.
|
SUCCEEDED
The task has succeeded.
|
Modifier and Type | Method and Description |
---|---|
static Task.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Task.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Task.State SCHEDULED
public static final Task.State CANCELLED
public static final Task.State RUNNING
public static final Task.State FAILED
public static final Task.State SUCCEEDED
public static Task.State[] values()
for (Task.State c : Task.State.values()) System.out.println(c);
public static Task.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null