Variable CLOSED_TRANSITIONSConst

CLOSED_TRANSITIONS: { NONE: "NONE"; TO_OPEN: "TO_OPEN" } = ...

The constant represents all available state transition when in closed state

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

Type declaration

  • ReadonlyNONE: "NONE"

    This field indicates that circuite breaker will stay in closed state and not transition.

  • ReadonlyTO_OPEN: "TO_OPEN"

    This field indicates that circuit breaker will transition from closed to open state.