Enum LifeCycle.Status

    • Enum Constant Detail

      • INACTIVE

        public static final LifeCycle.Status INACTIVE
        The component is inactive / has not been started
      • ACTIVE

        public static final LifeCycle.Status ACTIVE
        The component is active / processing I/O events.
      • SHUTDOWN_REQUEST

        public static final LifeCycle.Status SHUTDOWN_REQUEST
        Shutdown of the component has been requested.
      • SHUTTING_DOWN

        public static final LifeCycle.Status SHUTTING_DOWN
        The component is shutting down.
      • SHUT_DOWN

        public static final LifeCycle.Status SHUT_DOWN
        The component has shut down.
    • Method Detail

      • values

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

        public static LifeCycle.Status 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