public enum ClientConnectionState extends Enum<ClientConnectionState>
ClientConnection
class, and are used to indicate whether a client is waiting to connect, has connected, has dropped, or has failed.
Created by kenji on 1/4/15.| Enum Constant and Description |
|---|
CLOSED
Endpoint has closed the connection, or the connection has dropped.
|
CONNECTED
Endpoint connected.
|
FAILED
The connection failed due to a network issue.
|
WAITING
Waiting for connection, or attempting to connect.
|
| Modifier and Type | Method and Description |
|---|---|
static ClientConnectionState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientConnectionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientConnectionState WAITING
public static final ClientConnectionState CONNECTED
public static final ClientConnectionState CLOSED
public static final ClientConnectionState FAILED
public static ClientConnectionState[] values()
for (ClientConnectionState c : ClientConnectionState.values()) System.out.println(c);
public static ClientConnectionState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2015. All rights reserved.