org.fusesource.hawtdispatch
Enum DispatchQueue.QueueType

java.lang.Object
  extended by java.lang.Enum<DispatchQueue.QueueType>
      extended by org.fusesource.hawtdispatch.DispatchQueue.QueueType
All Implemented Interfaces:
Serializable, Comparable<DispatchQueue.QueueType>
Enclosing interface:
DispatchQueue

public static enum DispatchQueue.QueueType
extends Enum<DispatchQueue.QueueType>

Defines the types of dispatch queues supported by the system.


Enum Constant Summary
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.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GLOBAL_QUEUE

public static final DispatchQueue.QueueType GLOBAL_QUEUE
A global queue represents a dispatch queue which executes runnable objects in a concurrently.


SERIAL_QUEUE

public static final DispatchQueue.QueueType SERIAL_QUEUE
A serial dispatch queues executes runnable objects submitted to them serially in FIFO order. A queue will only invoke one runnable at a time, ut independent queues may each invoke their runnables concurrently with respect to each other.


THREAD_QUEUE

public static final DispatchQueue.QueueType THREAD_QUEUE
A thread queue is a dispatch queue associated with a specific thread. It executes runnable objects submitted to them serially in FIFO order.

Method Detail

values

public static DispatchQueue.QueueType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DispatchQueue.QueueType c : DispatchQueue.QueueType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DispatchQueue.QueueType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010-2012 FuseSource, Corp.. All Rights Reserved.