FallbackStrategy
Defined in: src/models/routing/fallback-strategy.ts:5
Selects the healthiest candidate not yet tried since the last success.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FallbackStrategy(): FallbackStrategy;Returns
Section titled “Returns”FallbackStrategy
Methods
Section titled “Methods”select()
Section titled “select()”select(context): Promise<RoutingCandidate>;Defined in: src/models/routing/fallback-strategy.ts:12
Select the least-failed available candidate, breaking ties by declaration order.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
context | RoutingContext | Current routing context |
Returns
Section titled “Returns”Promise<RoutingCandidate>
The selected candidate, or undefined when the round is exhausted