protected static enum AbstractSession.CloseReason extends Enum<AbstractSession.CloseReason>
Session
instance and is more useful in aiding flow control during the
close process.Enum Constant and Description |
---|
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. |
EXIT_PROCESSING
The session exits in a fashion that did not precipitate from some form of interruption, timeout or
exception, i.e.
|
PROCESSING_EXCEPTION
The session encountered an exception related to execution like a script error, traversal iteration problem,
serialization issue, etc.
|
REQUEST_TIMEOUT
The session was interrupted by the request timeout.
|
SESSION_TIMEOUT
The session was interrupted by the session lifetime timeout.
|
Modifier and Type | Method and Description |
---|---|
static AbstractSession.CloseReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractSession.CloseReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractSession.CloseReason EXIT_PROCESSING
MultiTaskSession
needs to be interrupted to stop processing.public static final AbstractSession.CloseReason CHANNEL_CLOSED
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
public static final AbstractSession.CloseReason SESSION_TIMEOUT
public static final AbstractSession.CloseReason REQUEST_TIMEOUT
public static AbstractSession.CloseReason[] values()
for (AbstractSession.CloseReason c : AbstractSession.CloseReason.values()) System.out.println(c);
public static AbstractSession.CloseReason valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2013–2021 Apache Software Foundation. All rights reserved.