Enum AbstractSession.CloseReason

    • Enum Constant Detail


        public static final AbstractSession.CloseReason EXIT_PROCESSING
        The session exits in a fashion that did not precipitate from some form of interruption, timeout or exception, i.e. it is simply allowed to process to an exit through its normal execution flow. This status may or may not be possible given the context of the implementation. For example, a MultiTaskSession needs to be interrupted to stop processing.

        public static final AbstractSession.CloseReason CHANNEL_CLOSED
        The session was interrupted by the channel closing, which can be something initiated by closing the Client or might be triggered by the server. This may not be considered an error situation and depending on context, might be similar to a EXIT_PROCESSING termination.

        public static final AbstractSession.CloseReason PROCESSING_EXCEPTION
        The session encountered an exception related to execution like a script error, traversal iteration problem, serialization issue, etc.

        public static final AbstractSession.CloseReason SESSION_TIMEOUT
        The session was interrupted by the session lifetime timeout.
    • Method Detail

      • values

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

        public static AbstractSession.CloseReason 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null