public class WebSocketClientConnection extends AbstractWebSocketConnection
BaseConnection.State, BaseConnection.SuspendToken
Connection.Listener
Constructor and Description |
---|
WebSocketClientConnection(EndPoint endp,
Executor executor,
DefaultWebSocketClient client) |
Modifier and Type | Method and Description |
---|---|
DefaultWebSocketClient |
getClient() |
void |
onClose()
Callback method invoked when this
Connection is closed. |
void |
onOpen()
Callback method invoked when this
Connection is opened. |
<C> void |
output(C context,
Callback<C> callback,
WebSocketFrame frame)
Enqueue internal frame from
OutgoingFrames stack for eventual write out on the physical connection. |
close, close, complete, disconnect, disconnect, flush, getBufferPool, getExtensions, getGenerator, getParser, getPolicy, getQueue, getRemoteAddress, getScheduler, getSession, getState, isOpen, isReading, notifyClosing, onFillable, resume, setExtensions, setSession, suspend, toString
addListener, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, onFillInterestedFailed, onReadTimeout, setInputBufferSize
public WebSocketClientConnection(EndPoint endp, Executor executor, DefaultWebSocketClient client)
public DefaultWebSocketClient getClient()
public void onClose()
Connection
Callback method invoked when this Connection
is closed.
Creators of the connection implementation are responsible for calling this method.
onClose
in interface Connection
onClose
in class AbstractWebSocketConnection
public void onOpen()
Connection
Callback method invoked when this Connection
is opened.
Creators of the connection implementation are responsible for calling this method.
onOpen
in interface Connection
onOpen
in class AbstractWebSocketConnection
public <C> void output(C context, Callback<C> callback, WebSocketFrame frame)
AbstractWebSocketConnection
OutgoingFrames
stack for eventual write out on the physical connection.output
in interface OutgoingFrames
output
in class AbstractWebSocketConnection
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.