public static enum ExecutorBuilder.QueueType extends java.lang.Enum<ExecutorBuilder.QueueType>
Enum Constant and Description |
---|
ARRAY |
LINKED |
PRIORITY |
SYNCHRONOUS |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.BlockingQueue<java.lang.Runnable> |
create(Options options,
java.lang.String prefix,
int queueSize) |
static ExecutorBuilder.QueueType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExecutorBuilder.QueueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecutorBuilder.QueueType ARRAY
public static final ExecutorBuilder.QueueType LINKED
public static final ExecutorBuilder.QueueType PRIORITY
public static final ExecutorBuilder.QueueType SYNCHRONOUS
public static ExecutorBuilder.QueueType[] values()
for (ExecutorBuilder.QueueType c : ExecutorBuilder.QueueType.values()) System.out.println(c);
public static ExecutorBuilder.QueueType 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 nullpublic java.util.concurrent.BlockingQueue<java.lang.Runnable> create(Options options, java.lang.String prefix, int queueSize)