|Modifier and Type||Method and Description|
Increments the size of the stream's flow control window by the given delta.
Gets the connection-wide initial flow control window size that is used as the basis for new stream flow control windows.
Sets the connection-wide initial flow control window and updates all stream windows (but not the connection stream window) by the delta.
Get the portion of the flow control window for the given stream that is currently available for sending/receiving frames which are subject to flow control.
void channelHandlerContext(ChannelHandlerContext ctx) throws Http2Exception
ChannelHandlerContextfor which to apply flow control on.
This must be called to properly initialize the
Not calling this is considered a programming error.
void initialWindowSize(int newWindowSize) throws Http2Exception
Represents the value for
SETTINGS_INITIAL_WINDOW_SIZE. This method should
only be called by Netty (not users) as a result of a receiving a
newWindowSize- the new initial window size.
Http2Exception- thrown if any protocol-related error occurred.
int windowSize(Http2Stream stream)
void incrementWindowSize(Http2Stream stream, int delta) throws Http2Exception
In the case of a
Http2RemoteFlowController this is called upon receipt of a
WINDOW_UPDATE frame from the remote endpoint to mirror the changes to the window
Http2LocalFlowController this can be called to request the expansion of the
window size published by this endpoint. It is up to the implementation, however, as to when a
WINDOW_UPDATE is actually sent.
Copyright © 2008–2023 The Netty Project. All rights reserved.