public enum ClientState extends java.lang.Enum<ClientState>
ClientState
enum represents the possible states for the ClientI
object.Enum Constant and Description |
---|
AUTHENTICATED
This state signifies that the client has signed in successfully to the Contact Control Service.
|
CONNECTED
This state signifies that the client is connected, the web socket is open and functional
|
CONNECTING
This state signifies that the client is in the process of opening a web socket with the Contact Control Service.
|
DISCONNECTED
This state signifies that the client is currently disconnected from the Contact Control Service and is not in the process
of reconnecting.
|
Modifier and Type | Method and Description |
---|---|
static ClientState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClientState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientState CONNECTING
public static final ClientState CONNECTED
public static final ClientState AUTHENTICATED
public static final ClientState DISCONNECTED
public static ClientState[] values()
for (ClientState c : ClientState.values()) System.out.println(c);
public static ClientState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null