java.io.Closeable, java.lang.AutoCloseable, Connection, WriteFlusher.Listenerpublic class HTTP2Connection extends AbstractConnection implements WriteFlusher.Listener
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
HTTP2Connection.HTTP2Producer |
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo| Constructor | Description |
|---|---|
HTTP2Connection(ByteBufferPool byteBufferPool,
java.util.concurrent.Executor executor,
EndPoint endPoint,
Parser parser,
ISession session,
int bufferSize) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
protected void |
dispatch() |
|
long |
getBytesIn() |
|
long |
getBytesOut() |
|
protected Parser |
getParser() |
|
ISession |
getSession() |
|
protected void |
offerTask(java.lang.Runnable task,
boolean dispatch) |
|
void |
onClose() |
|
void |
onFillable() |
|
void |
onFlushed(long bytes) |
|
boolean |
onIdleExpired() |
|
void |
onOpen() |
|
protected void |
produce() |
|
protected void |
setInputBuffer(java.nio.ByteBuffer buffer) |
addListener, failedCallback, fillInterested, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onFillInterestedFailed, onReadTimeout, removeListener, setInputBufferSize, toConnectionString, toString, tryFillInterested, tryFillInterestedprotected static final Logger LOG
public HTTP2Connection(ByteBufferPool byteBufferPool, java.util.concurrent.Executor executor, EndPoint endPoint, Parser parser, ISession session, int bufferSize)
public long getBytesIn()
getBytesIn in interface ConnectiongetBytesIn in class AbstractConnectionpublic long getBytesOut()
getBytesOut in interface ConnectiongetBytesOut in class AbstractConnectionpublic ISession getSession()
protected Parser getParser()
protected void setInputBuffer(java.nio.ByteBuffer buffer)
public void onOpen()
onOpen in interface ConnectiononOpen in class AbstractConnectionpublic void onClose()
onClose in interface ConnectiononClose in class AbstractConnectionpublic void onFillable()
onFillable in class AbstractConnectionpublic boolean onIdleExpired()
onIdleExpired in interface ConnectiononIdleExpired in class AbstractConnectionprotected void offerTask(java.lang.Runnable task,
boolean dispatch)
protected void produce()
protected void dispatch()
public void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in interface Connectionclose in class AbstractConnectionpublic void onFlushed(long bytes)
throws java.io.IOException
onFlushed in interface WriteFlusher.Listenerjava.io.IOExceptionCopyright © 1995–2018 Webtide. All rights reserved.