Class InstructionStreamConnection
java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.io.AbstractConnection.NonBlocking
org.eclipse.jetty.http3.InstructionStreamConnection
- All Implemented Interfaces:
 Closeable, AutoCloseable, Connection, Connection.UpgradeTo
- Direct Known Subclasses:
 DecoderStreamConnection, EncoderStreamConnection
public abstract class InstructionStreamConnection
extends AbstractConnection.NonBlocking
implements Connection.UpgradeTo
- 
Nested Class Summary
Nested classes/interfaces inherited from class AbstractConnection
AbstractConnection.NonBlockingNested classes/interfaces inherited from interface Connection
Connection.Listener, Connection.Tunnel, Connection.UpgradeFrom, Connection.UpgradeTo - 
Constructor Summary
ConstructorsConstructorDescriptionInstructionStreamConnection(EndPoint endPoint, Executor executor, ByteBufferPool bufferPool, ParserListener listener)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidnotifySessionFailure(long error, String reason, Throwable failure) voidCallback method invoked when the endpoint is ready to be read.voidonOpen()Callback method invoked when this connection is opened.voidonUpgradeTo(ByteBuffer upgrade) Invoked during anupgradeto receive a buffer containing bytes that have not been consumed by the upgrade-from connection, and that must be consumed by this connection.protected abstract voidparseInstruction(ByteBuffer buffer) voidsetUseInputDirectByteBuffers(boolean useInputDirectByteBuffers) Methods inherited from class AbstractConnection.NonBlocking
fillInterestedMethods inherited from class AbstractConnection
addEventListener, close, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onReadTimeout, removeEventListener, setInputBufferSize, toConnectionString, toString, tryFillInterested 
- 
Constructor Details
- 
InstructionStreamConnection
public InstructionStreamConnection(EndPoint endPoint, Executor executor, ByteBufferPool bufferPool, ParserListener listener)  
 - 
 - 
Method Details
- 
isUseInputDirectByteBuffers
public boolean isUseInputDirectByteBuffers() - 
setUseInputDirectByteBuffers
public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers)  - 
onUpgradeTo
Description copied from interface:Connection.UpgradeToInvoked during an
upgradeto receive a buffer containing bytes that have not been consumed by the upgrade-from connection, and that must be consumed by this connection.- Specified by:
 onUpgradeToin interfaceConnection.UpgradeTo- Parameters:
 upgrade- a non-null buffer of unconsumed bytes received from the upgrade-from connection. The buffer does not belong to any pool and should be discarded after having consumed its bytes.
 - 
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
 - 
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:
 
 - 
notifySessionFailure
 - 
parseInstruction
- Throws:
 QpackException
 
 -