SessionFlowControl

abstract class SessionFlowControl

Flow control representation of a Http2 Session

class Object
trait Matchable
class Any

Value members

Abstract methods

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.

Note

the stream StreamFlowWindow is not thread safe.

def sessionInboundAcked(count: Int): Unit

Update the session inbound window

Update the session inbound window

def sessionInboundConsumed(count: Int): Unit

Signal that inbound bytes have been consumed that are not tracked by a stream

Signal that inbound bytes have been consumed that are not tracked by a stream

def sessionInboundObserved(count: Int): Boolean

Observe inbound bytes that don't belong to an active inbound stream

Observe inbound bytes that don't belong to an active inbound stream

Value Params
count

bytes observed

Returns

true if there was sufficient session flow window remaining, false otherwise.

Get the number of bytes remaining in the inbound flow window

Get the number of bytes remaining in the inbound flow window

def sessionOutboundAcked(count: Int): Option[Http2Exception]

Update the session outbound window

Update the session outbound window

Note

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 remaining bytes in the sessions outbound flow window

Get the total number of inbound bytes that have yet to be consumed by the streams

Get the total number of inbound bytes that have yet to be consumed by the streams