com.ccadllc.cedi.circuitbreaker
Creates a CircuitBreakerRegistry
instance given a RegistrySettings configuration, providing for clean up of resources
when the registry is shutdown.
Creates a CircuitBreakerRegistry
instance given a RegistrySettings configuration, providing for clean up of resources
when the registry is shutdown.
- the type of effectful programs the circuit breakers in this registry will protect.
the configuration for the registry.
the scheduler used for the execution of periodic tasks, such as the statistics stream and the
the execution context used for the execution of an effectful program F
with a Effect
in implicit scope.
registry CircuitBreaker garbage collection.
circuitBreakerRegistry - an effectful program describing the creation of the circuit breaker registry which will be executed when the program is run.
The companion object to the
CircuitBreakerRegistry
- contains a smart constructor for registry creation, optionally registering a garbage collector to reap CircuitBreakers managed by the registry when they have not been accessed for a configured period of time. The companion also defines private data types used internally by the registry.