Package org.eclipse.jetty.http3.api
Class Stream.Data
java.lang.Object
org.eclipse.jetty.http3.api.Stream.Data
- Enclosing interface:
- Stream
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
-
Data
-
-
Method Details
-
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
-