java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.http2.HTTP2Connection
- All Implemented Interfaces:
Closeable,AutoCloseable,Parser.Listener,org.eclipse.jetty.io.Connection,org.eclipse.jetty.io.Connection.UpgradeTo,org.eclipse.jetty.io.WriteFlusher.Listener,org.eclipse.jetty.util.thread.Invocable
public class HTTP2Connection
extends org.eclipse.jetty.io.AbstractConnection
implements Parser.Listener, org.eclipse.jetty.io.WriteFlusher.Listener, org.eclipse.jetty.io.Connection.UpgradeTo
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
org.eclipse.jetty.io.Connection.Listener, org.eclipse.jetty.io.Connection.UpgradeFrom, org.eclipse.jetty.io.Connection.UpgradeToNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.TaskNested classes/interfaces inherited from interface org.eclipse.jetty.http2.parser.Parser.Listener
Parser.Listener.Wrapper -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking, NOOP -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHTTP2Connection(org.eclipse.jetty.io.ByteBufferPool bufferPool, Executor executor, org.eclipse.jetty.io.EndPoint endPoint, HTTP2Session session, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voiddispatch()longlonglonglongbooleanbooleanprotected voidvoidvoidonConnectionFailure(int error, String reason) voidvoidvoidonFlushed(long bytes) voidonGoAway(GoAwayFrame frame) voidonHeaders(HeadersFrame frame) booleanonIdleExpired(TimeoutException timeoutException) voidonOpen()voidvoidonPriority(PriorityFrame frame) voidonPushPromise(PushPromiseFrame frame) voidonReset(ResetFrame frame) voidonSettings(SettingsFrame frame) voidonStreamFailure(int streamId, int error, String reason) voidonUpgradeTo(ByteBuffer buffer) voidonWindowUpdate(WindowUpdateFrame frame) protected voidproduce()voidsetUseInputDirectByteBuffers(boolean useInputDirectByteBuffers) voidsetUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers) Methods inherited from class org.eclipse.jetty.io.AbstractConnection
addEventListener, failedCallback, fillInterested, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getInvocationType, isFillInterested, onFillInterestedFailed, onReadTimeout, removeEventListener, setInputBufferSize, toConnectionString, toString, tryFillInterested
-
Constructor Details
-
HTTP2Connection
protected HTTP2Connection(org.eclipse.jetty.io.ByteBufferPool bufferPool, Executor executor, org.eclipse.jetty.io.EndPoint endPoint, HTTP2Session session, int bufferSize)
-
-
Method Details
-
getMessagesIn
public long getMessagesIn()- Specified by:
getMessagesInin interfaceorg.eclipse.jetty.io.Connection- Overrides:
getMessagesInin classorg.eclipse.jetty.io.AbstractConnection
-
getMessagesOut
public long getMessagesOut()- Specified by:
getMessagesOutin interfaceorg.eclipse.jetty.io.Connection- Overrides:
getMessagesOutin classorg.eclipse.jetty.io.AbstractConnection
-
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
-
onUpgradeTo
- Specified by:
onUpgradeToin interfaceorg.eclipse.jetty.io.Connection.UpgradeTo
-
isUseInputDirectByteBuffers
public boolean isUseInputDirectByteBuffers() -
setUseInputDirectByteBuffers
public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers) -
isUseOutputDirectByteBuffers
public boolean isUseOutputDirectByteBuffers() -
setUseOutputDirectByteBuffers
public void setUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers) -
onOpen
public void onOpen()- Specified by:
onOpenin interfaceorg.eclipse.jetty.io.Connection- Overrides:
onOpenin classorg.eclipse.jetty.io.AbstractConnection
-
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
- Specified by:
onIdleExpiredin interfaceorg.eclipse.jetty.io.Connection- Overrides:
onIdleExpiredin classorg.eclipse.jetty.io.AbstractConnection
-
offerTask
-
produce
protected void produce() -
dispatch
protected void 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
-
onHeaders
- Specified by:
onHeadersin interfaceParser.Listener
-
onData
- Specified by:
onDatain interfaceParser.Listener
-
onPriority
- Specified by:
onPriorityin interfaceParser.Listener
-
onReset
- Specified by:
onResetin interfaceParser.Listener
-
onSettings
- Specified by:
onSettingsin interfaceParser.Listener
-
onPushPromise
- Specified by:
onPushPromisein interfaceParser.Listener
-
onPing
- Specified by:
onPingin interfaceParser.Listener
-
onGoAway
- Specified by:
onGoAwayin interfaceParser.Listener
-
onWindowUpdate
- Specified by:
onWindowUpdatein interfaceParser.Listener
-
onStreamFailure
- Specified by:
onStreamFailurein interfaceParser.Listener
-
onConnectionFailure
- Specified by:
onConnectionFailurein interfaceParser.Listener
-
onFlushed
- Specified by:
onFlushedin interfaceorg.eclipse.jetty.io.WriteFlusher.Listener- Throws:
IOException
-