UNPKG

vulcain-corejs

Version:
14 lines (13 loc) 434 B
import { CommandProperties } from "./commandProperties"; export interface CircuitBreaker { allowRequest(): boolean; markSuccess(): void; isOpen(): boolean; properties: CommandProperties; } export declare class CircuitBreakerFactory { static getOrCreate(properties: CommandProperties): any; static get(commandName: string): CircuitBreaker; static getCache(): Map<any, any>; static resetCache(): void; }