RpcBufferBudget class final

Two-dimensional accounting for a single queue. It owns no payloads.

Constructors

RpcBufferBudget({int? limitBytes, int? limitEvents})
Null disables that dimension. Sizes must use one consistent unit.

Properties

bytes → int
Bytes admitted and not yet released.
no setter
events → int
Events admitted and not yet released.
no setter
hashCode → int
The hash code for this object.
no setterinherited
limitBytes → int?
Maximum admitted pending bytes, when bounded.
final
limitEvents → int?
Maximum admitted pending events, when bounded.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

admit(int bytes, {int events = 1}) → bool
Admits both dimensions atomically, or changes neither on overflow.
clear() → void
Releases all accounting.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release(int bytes, {int events = 1}) → void
Releases a charge, clamping repeated or excessive releases at zero.
toString() → String
A string representation of this object.
inherited

Operators

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