| Modifier and Type | Class and Description |
|---|---|
| public static interface | StreamByteDistributor.
State information for the stream, indicating the number of bytes that are currently streamable. |
| public static interface | StreamByteDistributor.
Object that performs the writing of the bytes that have been allocated for a stream. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if there are still streamable bytes that have not yet been written,
otherwise false.the maximum number of bytes to write. maxBytes, StreamByteDistributor.Distributes up to |
| public void | updateDependencyTree(int
The stream identifier associated with the child stream. childStreamId, int The stream identifier associated with the parent stream. May be parentStreamId, short 0,
to make childStreamId and immediate child of the connection.The weight which is used relative to other child streams for weight, boolean parentStreamId. This value
must be between 1 and 256 (inclusive).If exclusive)childStreamId should be the exclusive dependency of parentStreamId.Explicitly update the dependency tree. |
| public void | updateStreamableBytes(StreamByteDistributor.
Called when the streamable bytes for a stream has changed. |
| distribute | back to summary |
|---|---|
| public boolean distribute(int maxBytes, StreamByteDistributor. Distributes up to The streamable bytes are not automatically updated by calling this method. It is up to the
caller to indicate the number of bytes streamable after the write by calling
| |
| updateDependencyTree | back to summary |
|---|---|
| public void updateDependencyTree(int childStreamId, int parentStreamId, short weight, boolean exclusive) Explicitly update the dependency tree. This method is called independently of stream state changes.
| |
| updateStreamableBytes | back to summary |
|---|---|
| public void updateStreamableBytes(StreamByteDistributor. Called when the streamable bytes for a stream has changed. Until this method is called for the first time for a give stream, the stream is assumed to have no streamable bytes. | |
updateStreamableBytes(StreamState) method.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public long | Returns: The amount of bytes this stream has pending to send.Get the amount of bytes this stream has pending to send. |
| public Http2Stream | |
| public int | Returns: the size of the stream's flow control window.The size (in bytes) of the stream's flow control window. |
| hasFrame | back to summary |
|---|---|
| public boolean hasFrame() Indicates whether or not there are frames pending for this stream. | |
| pendingBytes | back to summary |
|---|---|
| public long pendingBytes() Get the amount of bytes this stream has pending to send. The actual amount written must not exceed
| |
| stream | back to summary |
|---|---|
| public Http2Stream stream() Gets the stream this state is associated with. | |
| windowSize | back to summary |
|---|---|
| public int windowSize() The size (in bytes) of the stream's flow control window. The amount written must not exceed this amount! A
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | write(Http2Stream
the stream for which to perform the write. stream, int the number of bytes to write. numBytes)Writes the allocated bytes for this stream. |
| write | back to summary |
|---|---|
| public void write(Http2Stream stream, int numBytes) Writes the allocated bytes for this stream.
Any
| |