Zum Inhalt springen
Deutsch

DEFAULT_CIRCUIT_BREAKER_ID

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

const DEFAULT_CIRCUIT_BREAKER_ID: "default" = 'default'

Defined in: src/pattern/CircuitBreakerExtension.ts:27

The id CircuitBreakerExtension.breaker resolves with no argument, and the reserved name of the defaults block under actor-ts.circuit-breaker.

Reserving it costs nothing, because the two readings coincide: the block that configures every breaker is the block that configures the default breaker. No other id can reach it and it can reach no other id’s block, so a per-breaker block never shadows the defaults and the defaults never shadow a per-breaker block — which is the property the alternative shape, defaults at the block root with ids beside them, cannot have. There breaker('random-factor') would look for its settings inside a number.