Class InstructionStreamConnection

java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.http3.InstructionStreamConnection
All Implemented Interfaces:
Closeable, AutoCloseable, Connection, Connection.UpgradeTo, Invocable
Direct Known Subclasses:
DecoderStreamConnection, EncoderStreamConnection

public abstract class InstructionStreamConnection extends AbstractConnection implements Connection.UpgradeTo
  • Constructor Details

  • Method Details

    • isUseInputDirectByteBuffers

      public boolean isUseInputDirectByteBuffers()
    • setUseInputDirectByteBuffers

      public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers)
    • onUpgradeTo

      public void onUpgradeTo(ByteBuffer upgrade)
      Description copied from interface: Connection.UpgradeTo

      Invoked during an upgrade to 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:
      onUpgradeTo in interface Connection.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: Connection

      Callback method invoked when this connection is opened.

      Creators of the connection implementation are responsible for calling this method.

      Specified by:
      onOpen in interface Connection
      Overrides:
      onOpen in class AbstractConnection
    • onFillable

      public void onFillable()
      Description copied from class: AbstractConnection

      Callback method invoked when the endpoint is ready to be read.

      Specified by:
      onFillable in class AbstractConnection
      See Also:
    • notifySessionFailure

      protected void notifySessionFailure(long error, String reason, Throwable failure)
    • parseInstruction

      protected abstract void parseInstruction(ByteBuffer buffer) throws QpackException
      Throws:
      QpackException