CreditChannelCheckConfiguration class

Immutable pool configuration for a CreditChannelChecker.

Constructors

CreditChannelCheckConfiguration({required List<int> initialCredits, required List<int> maximumCredits, int? sharedInitialCredits, int? sharedMaximumCredits})
Creates a per-pool credit configuration.
CreditChannelCheckConfiguration.shared({required int poolCount, required int initialCredits, required int maximumCredits})
Creates shared-capacity accounting with pool-attributed event vectors.
factory
CreditChannelCheckConfiguration.uniform({required int poolCount, required int initialCredits, required int maximumCredits})
Creates a configuration with identical bounds for every pool.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
initialCredits → List<int>
Credit counts provisioned by reset for each pool.
final
maximumCredits → List<int>
Maximum representable credit count for each pool.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sharedInitialCredits → int?
Optional aggregate initial credit count for shared-capacity channels.
final
sharedMaximumCredits → int?
Optional aggregate maximum credit count for shared-capacity channels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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