StreamFlowWindow
abstract class StreamFlowWindow
Representation of the flow control state of a stream belonging to a session
The
both the individual stream and the session that it belongs to.
StreamFlowWindow
provides the tools for tracking the flow window forboth the individual stream and the session that it belongs to.
class Object
trait Matchable
class Any
Value members
Methods
Determine whether we have available flow window remaining, considering
both the stream and the session flow windows
both the stream and the session flow windows
Adjust the stream flow window to account for a change in INITIAL_WINDOW_SIZE
If an error is returned, the internal state must not be modified.
- Value Params
- delta
-
change in intial window size. Maybe be positive or negative, but must not
cause the window to overflow Int.MaxValue.
Request to withdraw bytes from the outbound window of the stream
and the session.
and the session.
- Value Params
- request
-
maximum bytes to withdraw
- Returns
-
actual bytes withdrawn from the window
Attempts to withdraw
count
bytes from the inbound window of both the stream and the session.If there are sufficient bytes in the stream and session flow windows, they are subtracted,
otherwise the window is unmodified.
otherwise the window is unmodified.
- Returns
-
true
if withdraw was successful,false
otherwise.
Signal that
count
bytes have been consumed by the stream- Note
- The consumed bytes are also counted for the session flow window.