Package com.tnsai.hooks.events
Enum Class SessionCloseReason
- All Implemented Interfaces:
Serializable,Comparable<SessionCloseReason>,Constable
Why a session is closing, carried by
SessionEnd (issue #63).
Drives operator dashboards and downstream cleanup branching —
a CLIENT_DISCONNECT is normal; an ERROR or
AUTH_REVOKED warrants attention.- Since:
- 0.5.0 (issue #63)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAuth token was revoked or expired mid-session.Client closed the connection normally.Unrecoverable error closed the session; cause attached.Idle-timer fired and the policy was to close.Server-initiated shutdown (deploy, drain, scale-down). -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionCloseReasonReturns the enum constant of this class with the specified name.static SessionCloseReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CLIENT_DISCONNECT
Client closed the connection normally. -
SERVER_SHUTDOWN
Server-initiated shutdown (deploy, drain, scale-down). -
IDLE_TIMEOUT
Idle-timer fired and the policy was to close. -
AUTH_REVOKED
Auth token was revoked or expired mid-session. -
ERROR
Unrecoverable error closed the session; cause attached.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-