Package civitas.celestis.event
Enum Class HandlerPriority
- All Implemented Interfaces:
Serializable,Comparable<HandlerPriority>,Constable
The execution priority of an event handler. Lower enum ordinals are
guaranteed to be executed earlier than higher enum ordinals.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA reserved priority for application critical tasks.The default priority when no priority is specified.The highest priority trivial tasks should have.The lowest priority trivial tasks should have.A reserved priority for application critical tasks. -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerPriorityReturns the enum constant of this class with the specified name.static HandlerPriority[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIALIZATION
@ApplicationCritical(created="0.4", lastUpdated="0.4") public static final HandlerPriority INITIALIZATIONA reserved priority for application critical tasks.This priority should only be used by event handlers which alter the control flow of the main thread.
-
PREEMPTIVE
The lowest priority trivial tasks should have. -
PRE_EARLY
-
EARLY
-
POST_EARLY
-
MEDIUM
The default priority when no priority is specified. -
PRE_LATE
-
LATE
-
POST_LATE
-
PERMISSIVE
The highest priority trivial tasks should have. -
TERMINAL
A reserved priority for application critical tasks.This priority should only be used for event handlers which alter the control flow of the main thread.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-