CircuitBreakerRegistry
CircuitBreakerRegistry is a component of the Resilience4j library that serves as a central registry for CircuitBreaker instances. It provides a name-based repository where circuit breakers can be created, configured, and reused across an application. The registry is designed to ensure that a single CircuitBreaker instance is associated with a given name, promoting consistent behavior and reducing duplication.
Construction and configuration
The registry can be created with a default configuration or with a custom global configuration. When a
The registry maintains an internal storage, typically a thread-safe map, linking names to CircuitBreaker instances. It
A typical usage pattern is to create a registry and obtain breakers by name, reusing them across
CircuitBreakerRegistry is part of the Resilience4j circuit breaker module. It complements the per-breaker state machine (closed,