public class ConnectHandler.DownstreamConnection extends ProxyConnection implements Connection.UpgradeTo
AbstractConnection.FillingInterestedCallback, AbstractConnection.NestedState, AbstractConnection.StateConnection.Listener, Connection.UpgradeFrom, Connection.UpgradeToLOGEXECUTE_ONFILLABLE, FILL_INTERESTED, FILLING, FILLING_FILL_INTERESTED, IDLE, REFILLING| Constructor and Description |
|---|
ConnectHandler.DownstreamConnection(EndPoint endPoint,
Executor executor,
ByteBufferPool bufferPool,
ConcurrentMap<String,Object> context) |
ConnectHandler.DownstreamConnection(EndPoint endPoint,
Executor executor,
ByteBufferPool bufferPool,
ConcurrentMap<String,Object> context,
ByteBuffer buffer)
Deprecated.
use
#DownstreamConnection(EndPoint, Executor, ByteBufferPool, ConcurrentMap) instead |
| Modifier and Type | Method and Description |
|---|---|
void |
onOpen() |
void |
onUpgradeTo(ByteBuffer buffer)
Callback method invoked when this
Connection is upgraded. |
protected int |
read(EndPoint endPoint,
ByteBuffer buffer) |
protected void |
write(EndPoint endPoint,
ByteBuffer buffer,
Callback callback) |
getByteBufferPool, getConnection, getContext, onFillable, setConnection, toStringaddListener, close, failedCallback, fillInterested, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, next, onClose, onFillInterestedFailed, onReadTimeout, setInputBufferSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, close, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getMessagesIn, getMessagesOut, onClosepublic ConnectHandler.DownstreamConnection(EndPoint endPoint, Executor executor, ByteBufferPool bufferPool, ConcurrentMap<String,Object> context)
@Deprecated public ConnectHandler.DownstreamConnection(EndPoint endPoint, Executor executor, ByteBufferPool bufferPool, ConcurrentMap<String,Object> context, ByteBuffer buffer)
#DownstreamConnection(EndPoint, Executor, ByteBufferPool, ConcurrentMap) insteadpublic void onUpgradeTo(ByteBuffer buffer)
Connection.UpgradeToCallback method invoked when this Connection is upgraded.
This must be called before Connection.onOpen().
onUpgradeTo in interface Connection.UpgradeTopublic void onOpen()
onOpen in interface ConnectiononOpen in class AbstractConnectionprotected int read(EndPoint endPoint, ByteBuffer buffer) throws IOException
read in class ProxyConnectionIOExceptionprotected void write(EndPoint endPoint, ByteBuffer buffer, Callback callback)
write in class ProxyConnectionCopyright © 1995-2016 Webtide. All Rights Reserved.