public enum TaskExecutor extends Enum<TaskExecutor> implements Task.Context
Task.| Enum Constant and Description |
|---|
DEFAULT
Executes tasks on the current thread.
|
FORK_JOIN
Executes tasks on the system fork-join pool.
|
| Modifier and Type | Method and Description |
|---|---|
static TaskExecutor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaskExecutor[] |
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, valueOfsubmitpublic static final TaskExecutor DEFAULT
public static final TaskExecutor FORK_JOIN
public static TaskExecutor[] values()
for (TaskExecutor c : TaskExecutor.values()) System.out.println(c);
public static TaskExecutor 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 nullCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.