public class ConnectionState
extends java.lang.Object
State
can only go in one direction from HANDSHAKING
to DISCONNECTED
.
Modifier and Type | Class and Description |
---|---|
private static class |
ConnectionState.State |
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicReference<ConnectionState.State> |
state |
Constructor and Description |
---|
ConnectionState() |
Modifier and Type | Method and Description |
---|---|
boolean |
canReadWebSocketFrames()
Tests to see if state allows for reading of WebSocket frames
|
boolean |
canWriteWebSocketFrames()
Test to see if state allows writing of WebSocket frames
|
boolean |
closing()
The Local Endpoint wants to close.
|
boolean |
disconnected()
Final Terminal state indicating the connection is disconnected
|
boolean |
opened()
Requests that the connection migrate to OPENED state
|
boolean |
opening()
Requests that the connection migrate to OPENING state
|
java.lang.String |
toString() |
private java.lang.String |
toString(ConnectionState.State state) |
private final java.util.concurrent.atomic.AtomicReference<ConnectionState.State> state
public boolean canWriteWebSocketFrames()
public boolean canReadWebSocketFrames()
public boolean opening()
public boolean opened()
public boolean closing()
public boolean disconnected()
private java.lang.String toString(ConnectionState.State state)
public java.lang.String toString()
toString
in class java.lang.Object