public static enum ExecutorBuilder.QueueType extends Enum<ExecutorBuilder.QueueType>
| Enum Constant and Description |
|---|
ARRAY |
LINKED |
PRIORITY |
SYNCHRONOUS |
| Modifier and Type | Method and Description |
|---|---|
BlockingQueue<Runnable> |
create(Options options,
String prefix,
int queueSize) |
static ExecutorBuilder.QueueType |
valueOf(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(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 BlockingQueue<Runnable> create(Options options, String prefix, int queueSize)
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.