vulcain-corejs
Version:
Vulcain micro-service framework
14 lines (13 loc) • 434 B
TypeScript
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;
}