public interface Http2FlowController
Modifier and Type | Method and Description |
---|---|
void |
incrementWindowSize(ChannelHandlerContext ctx,
Http2Stream stream,
int delta)
Increments the size of the stream's flow control window by the given delta.
|
int |
initialWindowSize()
Gets the initial flow control window size that is used as the basis for new stream flow
control windows.
|
void |
initialWindowSize(int newWindowSize)
Sets the initial flow control window and updates all stream windows (but not the connection
window) by the delta.
|
int |
windowSize(Http2Stream stream)
Gets the number of bytes remaining in the flow control window size for the given stream.
|
void initialWindowSize(int newWindowSize) throws Http2Exception
This method is used to apply the SETTINGS_INITIAL_WINDOW_SIZE
value for an
SETTINGS
frame.
newWindowSize
- the new initial window size.Http2Exception
- thrown if any protocol-related error occurred.int initialWindowSize()
int windowSize(Http2Stream stream)
stream
- The subject stream. Use Http2Connection.connectionStream()
for
requesting the size of the connection window.IllegalArgumentException
- if the given stream does not exist.void incrementWindowSize(ChannelHandlerContext ctx, 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
size.
For a 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.
ctx
- The context for the calling handlerstream
- The subject stream. Use Http2Connection.connectionStream()
for
requesting the size of the connection window.delta
- the change in size of the flow control window.Http2Exception
- thrown if a protocol-related error occurred.Copyright © 2008–2015 The Netty Project. All rights reserved.