The classic client API will be removed in a future release.
@Deprecated public enum ServerConnectionState extends Enum<ServerConnectionState>
Enum Constant and Description |
---|
CLOSED
Deprecated.
The connection is closed.
|
CLOSING
Deprecated.
A close has been requested but the connection is not yet fully closed.
|
CONNECTED
Deprecated.
The connection is connected.
|
CONNECTING
Deprecated.
Connection in progress.
|
LOST
Deprecated.
The connection was lost.
|
REJECTED
Deprecated.
The connection was rejected by the server.
|
Modifier and Type | Method and Description |
---|---|
boolean |
closedState()
Deprecated.
Is this a closed state?
|
static ServerConnectionState |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static ServerConnectionState[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerConnectionState CONNECTING
public static final ServerConnectionState CONNECTED
public static final ServerConnectionState CLOSED
This will be the state before connection and after a tidy closure of the connection.
public static final ServerConnectionState CLOSING
public static final ServerConnectionState REJECTED
This will be the state if a connection was established but was then rejected by the server due to authorisation or connection validation failure.
public static final ServerConnectionState LOST
This will be the state if a connection was established but then lost for some unknown reason. This may be due to a communications failure, an error at the server or the loss of the server.
public static ServerConnectionState[] values()
for (ServerConnectionState c : ServerConnectionState.values()) System.out.println(c);
public static ServerConnectionState 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 nullpublic boolean closedState()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.