public class ConnectHandler.UpstreamConnection extends ProxyConnection
AbstractConnection.FillingInterestedCallback, AbstractConnection.NestedState, AbstractConnection.State
Connection.Listener
LOG
EXECUTE_ONFILLABLE, FILL_INTERESTED, FILLING, FILLING_FILL_INTERESTED, IDLE, REFILLING
Constructor and Description |
---|
ConnectHandler.UpstreamConnection(EndPoint endPoint,
Executor executor,
ByteBufferPool bufferPool,
ConnectHandler.ConnectContext connectContext) |
Modifier and Type | Method and Description |
---|---|
void |
onOpen()
Callback method invoked when this
Connection is opened. |
protected int |
read(EndPoint endPoint,
ByteBuffer buffer) |
protected void |
write(EndPoint endPoint,
ByteBuffer buffer,
Callback callback) |
getByteBufferPool, getConnection, getContext, onFillable, setConnection, toString
addListener, close, failedCallback, fillInterested, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, next, onClose, onFillInterestedFailed, onReadTimeout, setInputBufferSize
public ConnectHandler.UpstreamConnection(EndPoint endPoint, Executor executor, ByteBufferPool bufferPool, ConnectHandler.ConnectContext connectContext)
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 AbstractConnection
protected int read(EndPoint endPoint, ByteBuffer buffer) throws IOException
read
in class ProxyConnection
IOException
protected void write(EndPoint endPoint, ByteBuffer buffer, Callback callback)
write
in class ProxyConnection
Copyright © 1995-2015 Webtide. All Rights Reserved.