public static enum Constants.ConnState extends Enum<Constants.ConnState>
AbstractConnection.getState()
.Enum Constant and Description |
---|
CLOSED
The
Connection is currently closed. |
CONNECTED
The
Connection is currently connected. |
CONNECTING
The
Connection is currently connecting to a server for the first time. |
DISCONNECTED
The
Connection is currently disconnected. |
RECONNECTING
The
Connection is currently attempting to reconnect to a server it was previously
connected to. |
Modifier and Type | Method and Description |
---|---|
static Constants.ConnState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Constants.ConnState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constants.ConnState DISCONNECTED
Connection
is currently disconnected.public static final Constants.ConnState CONNECTED
Connection
is currently connected.public static final Constants.ConnState CLOSED
Connection
is currently closed.public static final Constants.ConnState RECONNECTING
Connection
is currently attempting to reconnect to a server it was previously
connected to.AbstractConnection.isReconnecting()
public static final Constants.ConnState CONNECTING
Connection
is currently connecting to a server for the first time.public static Constants.ConnState[] values()
for (Constants.ConnState c : Constants.ConnState.values()) System.out.println(c);
public static Constants.ConnState 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–2016 Apcera, Inc.. All rights reserved.