Enum SessionState
- All Implemented Interfaces:
Serializable
,Comparable<SessionState>
State of a gateway session.
- See Also:
-
Enum Constant Summary
Enum ConstantDescriptionThe session has disconnected, possibly to resume.The session cache has been invalidated.The session is fully loaded, including all guilds.The session has been recreated after beinginvalidated
.The session has resumed successfully after disconnecting.The session has been closed and will not be reconnected. -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionState
Returns the enum constant of this type with the specified name.static SessionState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
READY
The session is fully loaded, including all guilds.- See Also:
-
INVALIDATED
The session cache has been invalidated.- See Also:
-
DISCONNECTED
The session has disconnected, possibly to resume.- See Also:
-
RESUMED
The session has resumed successfully after disconnecting.- See Also:
-
RECREATED
The session has been recreated after beinginvalidated
.- See Also:
-
SHUTDOWN
The session has been closed and will not be reconnected.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-