class WebSocketConnection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private org.jboss.netty.channel.Channel |
channel |
private java.util.logging.Logger |
log |
private java.util.concurrent.atomic.AtomicReference<com.google.common.util.concurrent.SettableFuture<java.lang.String>> |
pendingResponse |
Constructor and Description |
---|
WebSocketConnection(org.jboss.netty.channel.Channel channel) |
Modifier and Type | Method and Description |
---|---|
private void |
checkChannel() |
void |
close()
Closes this connection.
|
private void |
handleUncaughtException(java.lang.Throwable t) |
private void |
handleWebSocketFrame(org.jboss.netty.handler.codec.http.websocketx.WebSocketFrame frame) |
com.google.common.util.concurrent.ListenableFuture<java.lang.String> |
send(java.lang.String data)
Sends a text frame.
|
private final java.util.logging.Logger log
private final org.jboss.netty.channel.Channel channel
private final java.util.concurrent.atomic.AtomicReference<com.google.common.util.concurrent.SettableFuture<java.lang.String>> pendingResponse
public WebSocketConnection(org.jboss.netty.channel.Channel channel)
private void handleUncaughtException(java.lang.Throwable t)
private void handleWebSocketFrame(org.jboss.netty.handler.codec.http.websocketx.WebSocketFrame frame)
private void checkChannel()
public com.google.common.util.concurrent.ListenableFuture<java.lang.String> send(java.lang.String data)
data
- The frame data.java.lang.IllegalStateException
- If the underlying connection is closed or if there is
already a pending response.public void close()