Create a new StreamFlowWindow for a stream which will update and check the bounds of the session flow control state.
Create a new StreamFlowWindow for a stream which will update and check the bounds of the session flow control state.
the stream StreamFlowWindow is not thread safe.
Update the session inbound window
Signal that inbound bytes have been consumed that are not tracked by a stream
Observe inbound bytes that don't belong to an active inbound stream
Observe inbound bytes that don't belong to an active inbound stream
bytes observed
true
if there was sufficient session flow window remaining, false
otherwise.
Get the number of bytes remaining in the inbound flow window
Update the session outbound window
Update the session outbound window
there is no way to withdraw outbound bytes directly from the session as there should always be an associated stream when sending flow control counted bytes outbound.
Get the remaining bytes in the sessions outbound flow window
Get the total number of inbound bytes that have yet to be consumed by the streams
Flow control representation of a Http2 Session