Enum ShutdownPriority

    • Enum Constant Detail

      • HIGHEST

        public static final ShutdownPriority HIGHEST
        HIGHEST is the priority pre-defined in the system. Components which are registered with this priority will be shutdown first.
      • DEFAULT

        public static final ShutdownPriority 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

        public static final ShutdownPriority 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 Detail

      • values

        public static ShutdownPriority[] 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 (ShutdownPriority c : ShutdownPriority.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ShutdownPriority 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
      • getIntValue

        public int getIntValue()
        Returns the priority.
        Returns:
        the priority.
      • getPriorities

        public static List<ShutdownPriority> 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.