Enum Class CloseReason
- All Implemented Interfaces:
Serializable, Comparable<CloseReason>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe room as been closed by the server because it considered the room as AFK.The CLaJ server doesn't allows the provided implementation.Closed without reason.Connection closed or an error occurred while hosting a room.Incompatible CLaJ client.Old CLaJ client.Old CLaJ server.Server is shutting down.The server is notifying as full.The host is sending too many packets. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CloseReasonReturns the enum constant of this class with the specified name.static CloseReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
error
Connection closed or an error occurred while hosting a room. -
closed
Closed without reason. -
obsoleteClient
Incompatible CLaJ client. -
outdatedClient
Old CLaJ client. -
outdatedServer
Old CLaJ server. -
serverClosed
Server is shutting down. -
serverFull
The server is notifying as full. -
blacklisted
The CLaJ server doesn't allows the provided implementation. -
afk
The room as been closed by the server because it considered the room as AFK.
Here, AFK means that no CLaJ clients has joined the room for a long time. Even if in reality, there are client connected but with another way than CLaJ. -
spam
The host is sending too many packets.
-
-
Field Details
-
all
-
-
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
-