Class UnidirectionalStreamConnection

java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.http3.UnidirectionalStreamConnection
All Implemented Interfaces:
Closeable, AutoCloseable, Connection, Connection.UpgradeFrom, Invocable

public class UnidirectionalStreamConnection extends AbstractConnection implements Connection.UpgradeFrom
  • Constructor Details

  • Method Details

    • getEndPoint

      public QuicStreamEndPoint getEndPoint()
      Specified by:
      getEndPoint in interface Connection
      Overrides:
      getEndPoint in class AbstractConnection
      Returns:
      the EndPoint associated with this Connection.
    • isUseInputDirectByteBuffers

      public boolean isUseInputDirectByteBuffers()
    • setUseInputDirectByteBuffers

      public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers)
    • 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
    • onUpgradeFrom

      public ByteBuffer onUpgradeFrom()
      Description copied from interface: Connection.UpgradeFrom

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

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

      Specified by:
      onFillable in class AbstractConnection
      See Also: