Package org.eclipse.jetty.http3
Class UnidirectionalStreamConnection
java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.io.AbstractConnection.NonBlocking
org.eclipse.jetty.http3.UnidirectionalStreamConnection
- All Implemented Interfaces:
Closeable,AutoCloseable,Connection,Connection.UpgradeFrom
public class UnidirectionalStreamConnection
extends AbstractConnection.NonBlocking
implements Connection.UpgradeFrom
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.io.AbstractConnection
AbstractConnection.NonBlockingNested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.Tunnel, Connection.UpgradeFrom, Connection.UpgradeTo -
Constructor Summary
ConstructorsConstructorDescriptionUnidirectionalStreamConnection(StreamEndPoint endPoint, Executor executor, ByteBufferPool bufferPool, QpackEncoder encoder, QpackDecoder decoder, ParserListener listener) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidCallback method invoked when the endpoint is ready to be read.voidonOpen()Callback method invoked when this connection is opened.Invoked during anupgradeto produce a buffer containing bytes that have not been consumed by this connection, and that must be consumed by the upgrade-to connection.voidsetUseInputDirectByteBuffers(boolean useInputDirectByteBuffers) Methods inherited from class org.eclipse.jetty.io.AbstractConnection.NonBlocking
fillInterestedMethods inherited from class org.eclipse.jetty.io.AbstractConnection
addEventListener, close, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onReadTimeout, removeEventListener, setInputBufferSize, toConnectionString, toString, tryFillInterested
-
Constructor Details
-
UnidirectionalStreamConnection
public UnidirectionalStreamConnection(StreamEndPoint endPoint, Executor executor, ByteBufferPool bufferPool, QpackEncoder encoder, QpackDecoder decoder, ParserListener listener)
-
-
Method Details
-
getEndPoint
- Specified by:
getEndPointin interfaceConnection- Overrides:
getEndPointin classAbstractConnection- Returns:
- the
EndPointassociated with this Connection.
-
isUseInputDirectByteBuffers
public boolean isUseInputDirectByteBuffers() -
setUseInputDirectByteBuffers
public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers) -
onOpen
public void onOpen()Description copied from interface:ConnectionCallback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
onOpenin interfaceConnection- Overrides:
onOpenin classAbstractConnection
-
onUpgradeFrom
Description copied from interface:Connection.UpgradeFromInvoked during an
upgradeto produce a buffer containing bytes that have not been consumed by this connection, and that must be consumed by the upgrade-to connection.- Specified by:
onUpgradeFromin interfaceConnection.UpgradeFrom- Returns:
- a buffer of unconsumed bytes to pass to the upgrade-to connection. The buffer does not belong to any pool and should be discarded after having consumed its bytes. The returned buffer may be null if there are no unconsumed bytes.
-
onFillable
public void onFillable()Description copied from class:AbstractConnectionCallback method invoked when the endpoint is ready to be read.
- Specified by:
onFillablein classAbstractConnection- See Also:
-