public class HTTP2Connection extends AbstractConnection
Modifier and Type | Class and Description |
---|---|
protected class |
HTTP2Connection.HTTP2Producer |
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
Constructor and Description |
---|
HTTP2Connection(ByteBufferPool byteBufferPool,
Executor executor,
EndPoint endPoint,
Parser parser,
ISession session,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
protected Parser |
getParser() |
ISession |
getSession() |
protected void |
offerTask(Runnable task,
boolean dispatch) |
void |
onClose()
Callback method invoked when this
Connection is closed. |
void |
onFillable()
Callback method invoked when the endpoint is ready to be read.
|
void |
onOpen() |
protected boolean |
onReadTimeout()
Callback method invoked when the endpoint failed to be ready to be read after a timeout
|
protected void |
setInputBuffer(ByteBuffer buffer) |
addListener, close, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isDispatchIO, isFillInterested, onFillInterestedFailed, setInputBufferSize, toString
protected static final Logger LOG
public HTTP2Connection(ByteBufferPool byteBufferPool, Executor executor, EndPoint endPoint, Parser parser, ISession session, int bufferSize)
public ISession getSession()
protected Parser getParser()
protected void setInputBuffer(ByteBuffer buffer)
public void onOpen()
onOpen
in interface Connection
onOpen
in class AbstractConnection
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 AbstractConnection
public void onFillable()
AbstractConnection
Callback method invoked when the endpoint is ready to be read.
onFillable
in class AbstractConnection
AbstractConnection.fillInterested()
protected boolean onReadTimeout()
AbstractConnection
Callback method invoked when the endpoint failed to be ready to be read after a timeout
onReadTimeout
in class AbstractConnection
protected void offerTask(Runnable task, boolean dispatch)
Copyright © 1995-2015 Webtide. All Rights Reserved.