Enum Constant and Description |
---|
COMPLETE
Indicates task has completed successfully.
|
DESTROYED
The job has been destroyed.
|
EXCEPTION
Indicates an exception has occurred.
|
INCOMPLETE
Indicates the task failed to complete.
|
INPROGRESS
In progress
|
PENDING
The task hasn't started.
|
Modifier and Type | Method and Description |
---|---|
static TaskState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TaskState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
isComplete, isDestroyed, isException, isExecuting, isIncomplete, isReady, isStoppable
public static final TaskState PENDING
public static final TaskState INPROGRESS
public static final TaskState INCOMPLETE
public static final TaskState COMPLETE
public static final TaskState EXCEPTION
public static final TaskState DESTROYED
public static TaskState[] values()
for (TaskState c : TaskState.values()) System.out.println(c);
public static TaskState 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