Package org.eclipse.jetty.http3.internal
Class HTTP3StreamConnection
java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.http3.internal.HTTP3StreamConnection
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Connection
- Direct Known Subclasses:
ClientHTTP3StreamConnection
,ServerHTTP3StreamConnection
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
-
Constructor Summary
ConstructorsConstructorDescriptionHTTP3StreamConnection
(QuicStreamEndPoint endPoint, Executor executor, ByteBufferPool byteBufferPool, MessageParser parser) -
Method Summary
Modifier and TypeMethodDescriptionvoid
demand()
boolean
boolean
boolean
void
Callback method invoked when this connection is closed.protected abstract void
onDataAvailable
(long streamId) void
Callback method invoked when the endpoint is ready to be read.void
onOpen()
Callback method invoked when this connection is opened.protected boolean
onReadTimeout
(Throwable timeout) Callback method invoked when the endpoint failed to be ready to be read after a timeoutreadData()
void
setApplicationMode
(boolean mode) void
setUseInputDirectByteBuffers
(boolean useInputDirectByteBuffers) Methods inherited from class org.eclipse.jetty.io.AbstractConnection
addEventListener, close, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onFillInterestedFailed, onIdleExpired, removeEventListener, setInputBufferSize, toString, tryFillInterested
-
Constructor Details
-
HTTP3StreamConnection
public HTTP3StreamConnection(QuicStreamEndPoint endPoint, Executor executor, ByteBufferPool byteBufferPool, MessageParser parser)
-
-
Method Details
-
getEndPoint
- Specified by:
getEndPoint
in interfaceConnection
- Overrides:
getEndPoint
in classAbstractConnection
- Returns:
- the
EndPoint
associated with this Connection.
-
isUseInputDirectByteBuffers
public boolean isUseInputDirectByteBuffers() -
setUseInputDirectByteBuffers
public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers) -
setApplicationMode
public void setApplicationMode(boolean mode) -
onOpen
public void onOpen()Description copied from interface:Connection
Callback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
onOpen
in interfaceConnection
- Overrides:
onOpen
in classAbstractConnection
-
onClose
Description copied from interface:Connection
Callback method invoked when this connection is closed.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
onClose
in interfaceConnection
- Overrides:
onClose
in classAbstractConnection
- Parameters:
cause
- The cause of the close or null for a normal close
-
onReadTimeout
Description copied from class:AbstractConnection
Callback method invoked when the endpoint failed to be ready to be read after a timeout
- Overrides:
onReadTimeout
in classAbstractConnection
- Parameters:
timeout
- the cause of the read timeout- Returns:
- true to signal that the endpoint must be closed, false to keep the endpoint open
-
onFillable
public void onFillable()Description copied from class:AbstractConnection
Callback method invoked when the endpoint is ready to be read.
- Specified by:
onFillable
in classAbstractConnection
- See Also:
-
onDataAvailable
protected abstract void onDataAvailable(long streamId) -
readData
-
demand
public void demand() -
hasDemand
public boolean hasDemand() -
hasBuffer
public boolean hasBuffer() -
toConnectionString
- Overrides:
toConnectionString
in classAbstractConnection
-