nexus-agents - v2.80.0
    Preparing search index...

    Interface ICircuitBreaker

    Interface for circuit breaker operations.

    interface ICircuitBreaker {
        execute<T>(fn: () => Promise<T>): Promise<Result<T, CircuitError>>;
        getState(): CircuitState;
        getSnapshot(): CircuitBreakerSnapshot;
        reset(): void;
        recordFailure(category: CircuitBreakerFailureCategory): void;
        recordSuccess(): void;
    }
    Index

    Methods