public class WebSocketServerConnection extends AbstractWebSocketConnection
BaseConnection.State, BaseConnection.SuspendToken
Connection.Listener
Constructor and Description |
---|
WebSocketServerConnection(EndPoint endp,
Executor executor,
Scheduler scheduler,
WebSocketPolicy policy,
ByteBufferPool bufferPool,
WebSocketServerFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
onClose()
Callback method invoked when this
Connection is closed. |
void |
onOpen()
Callback method invoked when this
Connection is opened. |
close, close, complete, disconnect, disconnect, flush, getBufferPool, getExtensions, getGenerator, getParser, getPolicy, getQueue, getRemoteAddress, getScheduler, getSession, getState, isOpen, isReading, notifyClosing, onFillable, output, resume, setExtensions, setSession, suspend, toString
addListener, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, onFillInterestedFailed, onReadTimeout, setInputBufferSize
public WebSocketServerConnection(EndPoint endp, Executor executor, Scheduler scheduler, WebSocketPolicy policy, ByteBufferPool bufferPool, WebSocketServerFactory factory)
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
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.