IRpcFlowCredit class abstract interface

Flow-control metering a higher layer takes over for a stream.

The transport meters what it hands out through getMessagesForStream, lazily, so a consumer that stops reading stops credit reaching the peer. A client-stream handler is fed by the responder pipeline instead, so the transport sees nothing to meter and would have to credit on arrival — leaving that direction unbounded.

Once deferFlowCredit is called, returnFlowCredit MUST be called as the application consumes, or the peer stalls when the window runs out.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

deferFlowCredit(int streamId) → void
Hands metering of streamId to the caller.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
returnFlowCredit(int streamId, int bytes) → void
Reports one message of bytes consumed by the application on streamId.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited