ProviderQueueState class final

The sticky RAM cursor and per-entry health of a provider-queue-driven FallbackStreamFunction (issue #418). Volatile by contract — restart constructs a fresh wrapper and the queue restarts at its head (AC6); nothing ever persists this object.

Constructors

ProviderQueueState()

Properties

currentIndex → int
The entry serving requests right now (the sticky cursor).
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

consecutiveFailures(int index) → int
The entry's consecutive failure count (0 when healthy).
cooldownRemaining(int index, DateTime now) → Duration?
Cooldown remaining on index, or null when healthy.
lastError(int index) → String?
The entry's last error text, or null when it never failed.
lastErrorKind(int index) → QueueDeathKind?
The entry's last death kind, or null when it never failed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordCooldown(int index, DateTime until) → void
Mirrors the wrapper's cooldown decision for index.
recordCurrentIndex(int index) → void
Mirrors the wrapper's active entry at call start.
recordFailure(int index, QueueDeathKind kind, String errorText) → int
Records a failed attempt on index: bumps the consecutive-failure count and stores the error story. Returns the failure count AFTER the bump (the cooldown doubling input).
recordSuccess(int index) → void
Records a served request on index: counters and the error story reset (success heals — AC5).
toString() → String
A string representation of this object.
inherited

Operators

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