public enum TaskMode extends Enum<TaskMode>
Enum Constant and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final TaskMode ASYNC
State.RUNNING
state, that is, the Task.run()
call
is implicit.public static final TaskMode SYNC
State.RUNNING
state, and is waited for.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 nameNullPointerException
- if the argument is nullpublic int getValue()
Copyright © 2016 Open Grid Forum. All rights reserved.