public static final class FrameEvent.DataFrame extends java.lang.Object implements FrameEvent.StreamFrameEvent, scala.Product, java.io.Serializable
FrameEvent.ContinuationFrame, FrameEvent.ContinuationFrame$, FrameEvent.DataFrame, FrameEvent.DataFrame$, FrameEvent.GoAwayFrame, FrameEvent.GoAwayFrame$, FrameEvent.HeadersFrame, FrameEvent.HeadersFrame$, FrameEvent.ParsedHeadersFrame, FrameEvent.ParsedHeadersFrame$, FrameEvent.PingFrame, FrameEvent.PingFrame$, FrameEvent.PriorityFrame, FrameEvent.PriorityFrame$, FrameEvent.PushPromiseFrame, FrameEvent.PushPromiseFrame$, FrameEvent.RstStreamFrame, FrameEvent.RstStreamFrame$, FrameEvent.Setting, FrameEvent.Setting$, FrameEvent.SettingsAckFrame, FrameEvent.SettingsAckFrame$, FrameEvent.SettingsFrame, FrameEvent.SettingsFrame$, FrameEvent.StreamFrameEvent, FrameEvent.UnknownFrameEvent, FrameEvent.UnknownFrameEvent$, FrameEvent.WindowUpdateFrame, FrameEvent.WindowUpdateFrame$
Constructor and Description |
---|
DataFrame(int streamId,
boolean endStream,
org.apache.pekko.util.ByteString payload) |
Modifier and Type | Method and Description |
---|---|
boolean |
endStream() |
org.apache.pekko.util.ByteString |
payload() |
int |
sizeInWindow()
The amount of bytes this frame consumes of a window.
|
int |
streamId() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
frameTypeName
public DataFrame(int streamId, boolean endStream, org.apache.pekko.util.ByteString payload)
public int streamId()
streamId
in interface FrameEvent.StreamFrameEvent
public boolean endStream()
public org.apache.pekko.util.ByteString payload()
public int sizeInWindow()
For flow-control calculations, the 9-octet frame header is not counted.
That means this size amounts to data size + padding size field + padding.