Package org.eclipse.jetty.http2
Class HTTP2Connection
- java.lang.Object
-
- org.eclipse.jetty.io.AbstractConnection
-
- org.eclipse.jetty.http2.HTTP2Connection
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.eclipse.jetty.io.Connection
public class HTTP2Connection extends org.eclipse.jetty.io.AbstractConnection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classHTTP2Connection.HTTP2Producer
-
Field Summary
Fields Modifier and Type Field Description protected static org.eclipse.jetty.util.log.LoggerLOG
-
Constructor Summary
Constructors Constructor Description HTTP2Connection(org.eclipse.jetty.io.ByteBufferPool byteBufferPool, Executor executor, org.eclipse.jetty.io.EndPoint endPoint, Parser parser, ISession session, int bufferSize, org.eclipse.jetty.util.thread.ExecutionStrategy.Factory executionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetBytesIn()longgetBytesOut()protected ParsergetParser()ISessiongetSession()protected voidofferTask(Runnable task, boolean dispatch)voidonClose()voidonFillable()booleanonIdleExpired()voidonOpen()protected voidsetInputBuffer(ByteBuffer buffer)-
Methods inherited from class org.eclipse.jetty.io.AbstractConnection
addListener, failedCallback, fillInterested, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isDispatchIO, isFillInterested, onFillInterestedFailed, onReadTimeout, removeListener, setInputBufferSize, toString, tryFillInterested, tryFillInterested
-
-
-
-
Method Detail
-
getBytesIn
public long getBytesIn()
- Specified by:
getBytesInin interfaceorg.eclipse.jetty.io.Connection- Overrides:
getBytesInin classorg.eclipse.jetty.io.AbstractConnection
-
getBytesOut
public long getBytesOut()
- Specified by:
getBytesOutin interfaceorg.eclipse.jetty.io.Connection- Overrides:
getBytesOutin classorg.eclipse.jetty.io.AbstractConnection
-
getSession
public ISession getSession()
-
getParser
protected Parser getParser()
-
setInputBuffer
protected void setInputBuffer(ByteBuffer buffer)
-
onOpen
public void onOpen()
- Specified by:
onOpenin interfaceorg.eclipse.jetty.io.Connection- Overrides:
onOpenin classorg.eclipse.jetty.io.AbstractConnection
-
onClose
public void onClose()
- Specified by:
onClosein interfaceorg.eclipse.jetty.io.Connection- Overrides:
onClosein classorg.eclipse.jetty.io.AbstractConnection
-
onFillable
public void onFillable()
- Specified by:
onFillablein classorg.eclipse.jetty.io.AbstractConnection
-
onIdleExpired
public boolean onIdleExpired()
- Specified by:
onIdleExpiredin interfaceorg.eclipse.jetty.io.Connection- Overrides:
onIdleExpiredin classorg.eclipse.jetty.io.AbstractConnection
-
offerTask
protected void offerTask(Runnable task, boolean dispatch)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.eclipse.jetty.io.Connection- Overrides:
closein classorg.eclipse.jetty.io.AbstractConnection
-
-