Enum Class ShutdownPriority
- All Implemented Interfaces:
Serializable
,Comparable<ShutdownPriority>
,Constable
This class defines the shutdown priorities that are consumed by
com.sun.identity.common.ShutdownManager
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the priority.static List<ShutdownPriority>
Returns list of all the priorities (ordered from the highest to the lowest priority) defined in the system.static ShutdownPriority
Returns the enum constant of this class with the specified name.static ShutdownPriority[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HIGHEST
HIGHEST is the priority pre-defined in the system. Components which are registered with this priority will be shutdown first. -
DEFAULT
DEFAULT is the priority pre-defined in the system. Components which are registered with this priority will be shutdown after the componets with HIGHEST priority. -
LOWEST
LOWEST is the priority pre-defined in the system. Components which are registered with this priority will be shutdown after the componets with HIGHEST or DEFAULT priority.
-
-
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
-
getIntValue
public int getIntValue()Returns the priority.- Returns:
- the priority.
-
getPriorities
Returns list of all the priorities (ordered from the highest to the lowest priority) defined in the system.- Returns:
- list of all the priorities defined in the system.
-