public static enum DispatchQueue.QueueType extends Enum<DispatchQueue.QueueType>
Enum Constant and Description |
---|
GLOBAL_QUEUE
A global queue represents a dispatch queue which executes
runnable objects in a concurrently.
|
SERIAL_QUEUE
A serial dispatch queues executes runnable objects
submitted to them serially in FIFO order.
|
THREAD_QUEUE
A thread queue is a dispatch queue associated with a specific
thread.
|
Modifier and Type | Method and Description |
---|---|
static DispatchQueue.QueueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DispatchQueue.QueueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DispatchQueue.QueueType GLOBAL_QUEUE
public static final DispatchQueue.QueueType SERIAL_QUEUE
public static final DispatchQueue.QueueType THREAD_QUEUE
public static DispatchQueue.QueueType[] values()
for (DispatchQueue.QueueType c : DispatchQueue.QueueType.values()) System.out.println(c);
public static DispatchQueue.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 nullCopyright © 2010–2017 FuseSource, Corp.. All rights reserved.