org.ow2.util.event.api
Enum EventPriority

java.lang.Object
  extended by java.lang.Enum<EventPriority>
      extended by org.ow2.util.event.api.EventPriority
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EventPriority>

public enum EventPriority
extends java.lang.Enum<EventPriority>

Define listener's priorities.

Author:
missonng

Enum Constant Summary
ASYNC_HIGH
          Ordinal : 4.
ASYNC_LOW
          Ordinal : 6.
ASYNC_NORM
          Ordinal : 5.
NONE
          Ordinal : 3.
SYNC_HIGH
          Ordinal : 0.
SYNC_LOW
          Ordinal : 2.
SYNC_NORM
          Ordinal : 1.
 
Method Summary
static EventPriority valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EventPriority[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SYNC_HIGH

public static final EventPriority SYNC_HIGH
Ordinal : 0.


SYNC_NORM

public static final EventPriority SYNC_NORM
Ordinal : 1.


SYNC_LOW

public static final EventPriority SYNC_LOW
Ordinal : 2.


NONE

public static final EventPriority NONE
Ordinal : 3.


ASYNC_HIGH

public static final EventPriority ASYNC_HIGH
Ordinal : 4.


ASYNC_NORM

public static final EventPriority ASYNC_NORM
Ordinal : 5.


ASYNC_LOW

public static final EventPriority ASYNC_LOW
Ordinal : 6.

Method Detail

values

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

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

valueOf

public static EventPriority valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.