|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<TaskMode>
org.ogf.saga.task.TaskMode
public enum TaskMode
This enumeration type describes the possible ways to create a task: Asynchronous (the task is started in RUNNING state), Task (the task is started in NEW state), or Synchronous (the task is started and waited for).
Enum Constant Summary | |
---|---|
ASYNC
The task is started in State.RUNNING state, that is, the Task.run() call
is implicit. |
|
SYNC
The task is started in State.RUNNING state, and is waited for. |
|
TASK
The task is started in State.NEW state. |
Method Summary | |
---|---|
int |
getValue()
Returns the integer value of this enumeration literal. |
static TaskMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TaskMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TaskMode ASYNC
State.RUNNING
state, that is, the Task.run()
call
is implicit.
public static final TaskMode TASK
State.NEW
state.
public static final TaskMode SYNC
State.RUNNING
state, and is waited for.
Method Detail |
---|
public static TaskMode[] values()
for (TaskMode c : TaskMode.values()) System.out.println(c);
public static TaskMode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |