Class Stream.Data

java.lang.Object
org.eclipse.jetty.http3.api.Stream.Data
Enclosing interface:
Stream

public static class Stream.Data extends Object

A Stream.Data instance associates a ByteBuffer containing request bytes or response bytes with a completion event that applications must trigger when the bytes have been processed.

See Also:
  • Constructor Details

  • Method Details

    • getByteBuffer

      public ByteBuffer getByteBuffer()
      Returns:
      the ByteBuffer containing the data bytes
      See Also:
    • isLast

      public boolean isLast()
      Returns:
      whether this is the instance that ends the stream of bytes received from the remote peer
    • complete

      public void complete()

      The method that applications must invoke to signal that the data bytes have been processed.

      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object