Variable HALF_OPEN_TRANSITIONSConst

HALF_OPEN_TRANSITIONS: {
    NONE: "NONE";
    TO_CLOSED: "TO_CLOSED";
    TO_OPEN: "TO_OPEN";
} = ...

The constant represents all available state transition when in half open state

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

Type declaration

  • ReadonlyNONE: "NONE"

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

  • ReadonlyTO_CLOSED: "TO_CLOSED"

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

  • ReadonlyTO_OPEN: "TO_OPEN"

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