resilience library

Optional resilience APIs. Import only when needed.

Classes

CircuitBreakerInterceptor
Scope an instance to a single backend. One probe is allowed after cooldown.
ConcurrencyInterceptor
Permits cover the response lifetime, not just the time to receive headers.
FailoverInterceptor
Explicit alternate origins for replayable reads; credentials never cross origins.
HedgingInterceptor
Opt-in duplicate reads. The first response wins; losing work is canceled. Place authentication before this policy. It only repeats the original URI.
RetryInterceptor
Retries replayable, eligible operations before their response is delivered. Honors Retry-After; it never retries partially consumed response bodies.
RetryOptions
Finite retry budget with jitter bounds and explicit permission for writes.
TimeoutInterceptor
Place before retries for an overall deadline, after them for attempt deadlines. Remains active until the response body is consumed or disposed.

Exceptions / Errors

CircuitOpenException
The shared circuit breaker is open and prevented a transport dispatch.