Enum Class ClientStats.ConnectionState
- All Implemented Interfaces:
Serializable, Comparable<ClientStats.ConnectionState>, Constable
- Enclosing class:
ClientStats
The state of a client's connection.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe client is closed.A connection is established.An attempt is establishing a connection.No connection is requested.A requested disconnection is in progress.A connection ended, and the client waits to try again. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientStats.ConnectionStateReturns the enum constant of this class with the specified name.static ClientStats.ConnectionState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISCONNECTED
No connection is requested. -
CONNECTING
An attempt is establishing a connection. -
CONNECTED
A connection is established. -
DISCONNECTING
A requested disconnection is in progress. -
WAITING_TO_RECONNECT
A connection ended, and the client waits to try again. -
CLOSED
The client is closed.
-
-
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
-