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

public abstract class HTTP3StreamConnection extends AbstractConnection
  • 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
    • onClose

      public void onClose(Throwable cause)
      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 interface Connection
      Overrides:
      onClose in class AbstractConnection
      Parameters:
      cause - The cause of the close or null for a normal close
    • onReadTimeout

      protected boolean onReadTimeout(Throwable timeout)
      Description copied from class: AbstractConnection

      Callback method invoked when the endpoint failed to be ready to be read after a timeout

      Overrides:
      onReadTimeout in class AbstractConnection
      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 class AbstractConnection
      See Also:
    • onDataAvailable

      protected abstract void onDataAvailable(long streamId)
    • readData

      public Stream.Data readData()
    • demand

      public void demand()
    • hasDemand

      public boolean hasDemand()
    • hasBuffer

      public boolean hasBuffer()
    • toConnectionString

      public String toConnectionString()
      Overrides:
      toConnectionString in class AbstractConnection