ICircuitBreakerAdapter: {
    getState(key: string): Promise<CircuitBreakerState>;
    isolate(key: string): Promise<void>;
    reset(key: string): Promise<void>;
    trackFailure(key: string): Promise<void>;
    trackSuccess(key: string): Promise<void>;
    updateState(key: string): Promise<CircuitBreakerStateTransition>;
}

The ICircuitBreakerAdapter contract defines a way for managing circuit breakers independent of the underlying technology and algorithm. This contract is not meant to be used directly, instead you should use ICircuitBreakerProvider contract.

IMPORT_PATH: "@daiso-tech/core/circuit-breaker/contracts"

Type declaration