Enum Session.Lifecycle

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Session.Lifecycle>
    Enclosing interface:
    Session

    public static enum Session.Lifecycle
    extends java.lang.Enum<Session.Lifecycle>
    Identifies the operational state of a Session.
    • Enum Constant Detail

      • CLOSING

        public static final Session.Lifecycle CLOSING
        Work in progress is completed but no additional work can be submitted. Attempting to queue work throws IllegalStateException. When the close Operation is completed -> CLOSED. A Session in this state is 'closed' and 'working'.
      • ABORTING

        public static final Session.Lifecycle ABORTING
        Work is neither queued nor performed. The currently executing Operations, if any, are terminated immediately. Any queued Operations are removed from the queue. Attempting to queue work throws IllegalStateException. When the queue is empty -< CLOSED. A Session in this state is 'closed'.
      • CLOSED

        public static final Session.Lifecycle CLOSED
        Work is neither queued nor performed. Attempting to queue work throws IllegalStateException. A Session in this state is 'closed'.
    • Method Detail

      • values

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

        public static Session.Lifecycle 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
        java.lang.NullPointerException - if the argument is null
      • isClosed

        public boolean isClosed()
      • isWorking

        public boolean isWorking()