@aster-rpc/aster API Reference
    Preparing search index...

    Class CircuitBreakerInterceptor

    Circuit breaker for failing endpoints.

    Implements

    Index

    Accessors

    • get currentState(): State

      Current circuit state.

      Returns State

    Constructors

    Methods

    • Pre-call gate check — throws if circuit is open. Alias for the logic in onRequest(), callable without a full call context.

      Returns void

    • Record a successful call — resets the failure count.

      Returns void

    • Record a failed call — may open the circuit.

      Returns void