Http2FlowController for controlling the inbound flow of DATA frames from the remote endpoint.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if aWINDOW_UPDATE was sent, false otherwise.the stream for which window space should be freed. The connection stream object must not be used.
If stream, int stream is null or closed (i.e. Http2Stream#state() method returns Http2Stream.), calling this method has no effect.the number of bytes to be returned to the flow control window. numBytes)Indicates that the application has consumed a number of bytes for the given stream and is therefore ready to receive more data from the remote endpoint. |
| public Http2LocalFlowController | frameWriter(Http2FrameWriter
the HTTP/2 frame writer. frameWriter)Sets the writer to be use for sending |
| public int | |
| public void | receiveFlowControlledFrame(Http2Stream
the subject stream for the received frame. The connection stream object must not be used. If stream, ByteBuf stream is null or closed, flow control should only be applied to the connection window and the bytes are
immediately consumed.payload buffer for the frame. data, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding, boolean Indicates whether this is the last frame to be sent from the remote endpoint for this stream. endOfStream)Receives an inbound |
| public int | Returns: the number of unconsumed bytes for the stream.the stream for which window space should be freed. stream)The number of bytes for the given stream that have been received but not yet consumed by the application. |
| consumeBytes | back to summary |
|---|---|
| public boolean consumeBytes(Http2Stream stream, int numBytes) throws Http2Exception Indicates that the application has consumed a number of bytes for the given stream and is therefore ready to
receive more data from the remote endpoint. The application must consume any bytes that it receives or the flow
control window will collapse. Consuming bytes enables the flow controller to send
If
| |
| frameWriter | back to summary |
|---|---|
| public Http2LocalFlowController frameWriter(Http2FrameWriter frameWriter) Sets the writer to be use for sending
| |
| initialWindowSize | back to summary |
|---|---|
| public int initialWindowSize(Http2Stream stream) Get the initial flow control window size for the given stream. This quantity is measured in number of bytes. Note
the unavailable window portion can be calculated by | |
| receiveFlowControlledFrame | back to summary |
|---|---|
| public void receiveFlowControlledFrame(Http2Stream stream, ByteBuf data, int padding, boolean endOfStream) throws Http2Exception Receives an inbound
If
| |
| unconsumedBytes | back to summary |
|---|---|
| public int unconsumedBytes(Http2Stream stream) The number of bytes for the given stream that have been received but not yet consumed by the application.
| |