org.fusesource.hawtdispatch
Enum DispatchPriority

java.lang.Object
  extended by java.lang.Enum<DispatchPriority>
      extended by org.fusesource.hawtdispatch.DispatchPriority
All Implemented Interfaces:
Serializable, Comparable<DispatchPriority>

public enum DispatchPriority
extends Enum<DispatchPriority>

Defines the supported global/concurrent queue priorities.

Author:
Hiram Chirino

Enum Constant Summary
DEFAULT
          Items dispatched to the queue will run at the default priority, i.e. the queue will be scheduled for execution after all high priority queues have been scheduled, but before any low priority queues have been scheduled.
HIGH
          Items dispatched to the queue will run at high priority, i.e. the queue will be scheduled for execution before any default priority or low priority queue.
LOW
          Items dispatched to the queue will run at low priority, i.e. the queue will be scheduled for execution after all default priority and high priority queues have been scheduled.
 
Method Summary
static DispatchPriority valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DispatchPriority[] 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

HIGH

public static final DispatchPriority HIGH
Items dispatched to the queue will run at high priority, i.e. the queue will be scheduled for execution before any default priority or low priority queue.


DEFAULT

public static final DispatchPriority DEFAULT
Items dispatched to the queue will run at the default priority, i.e. the queue will be scheduled for execution after all high priority queues have been scheduled, but before any low priority queues have been scheduled.


LOW

public static final DispatchPriority LOW
Items dispatched to the queue will run at low priority, i.e. the queue will be scheduled for execution after all default priority and high priority queues have been scheduled.

Method Detail

values

public static DispatchPriority[] 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 (DispatchPriority c : DispatchPriority.values())
    System.out.println(c);

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

valueOf

public static DispatchPriority 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-2014 FuseSource, Corp.. All Rights Reserved.