public static enum WebSocket.WebSocketState extends Enum<WebSocket.WebSocketState>
| Enum Constant and Description |
|---|
PN_WS_CLOSED
Connection closed
|
PN_WS_CONNECTED_CLOSING
Connected and received a close
|
PN_WS_CONNECTED_FLOW
Connected and messages flow
|
PN_WS_CONNECTED_PONG
Connected and ping-pong
|
PN_WS_CONNECTING
Pending connection
|
PN_WS_FAILED
Connection failed
|
PN_WS_NOT_STARTED
WebSocket
|
| Modifier and Type | Method and Description |
|---|---|
static WebSocket.WebSocketState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocket.WebSocketState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocket.WebSocketState PN_WS_NOT_STARTED
public static final WebSocket.WebSocketState PN_WS_CONNECTING
public static final WebSocket.WebSocketState PN_WS_CONNECTED_FLOW
public static final WebSocket.WebSocketState PN_WS_CONNECTED_PONG
public static final WebSocket.WebSocketState PN_WS_CONNECTED_CLOSING
public static final WebSocket.WebSocketState PN_WS_CLOSED
public static final WebSocket.WebSocketState PN_WS_FAILED
public static WebSocket.WebSocketState[] values()
for (WebSocket.WebSocketState c : WebSocket.WebSocketState.values()) System.out.println(c);
public static WebSocket.WebSocketState 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 © 2019. All rights reserved.