public enum ExecutorType extends java.lang.Enum<ExecutorType>
Executor types that mirror the methods defined in the
Executors class.| Enum Constant and Description |
|---|
CACHED |
FIXED |
SCHEDULED |
WORK_STEALING |
| Modifier and Type | Method and Description |
|---|---|
static ExecutorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExecutorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecutorType SCHEDULED
Executors.newScheduledThreadPool(int)public static final ExecutorType CACHED
Executors.newCachedThreadPool()public static final ExecutorType FIXED
Executors.newFixedThreadPool(int)public static final ExecutorType WORK_STEALING
Executors.newWorkStealingPool()public static ExecutorType[] values()
for (ExecutorType c : ExecutorType.values()) System.out.println(c);
public static ExecutorType 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