org.squbs.streams.circuitbreaker.impl
Create a new AtomicCircuitBreakerState from configuration.
Create a new AtomicCircuitBreakerState from configuration.
The unique name of this circuit breaker instance.
Configuration to look for the settings
ActorSystem
Create a new CircuitBreaker.
Create a new CircuitBreaker.
Callbacks run in caller's thread when using withSyncCircuitBreaker, and in same ExecutionContext as the passed in Future when using withCircuitBreaker. To use another ExecutionContext for the callbacks you can specify the executor in the constructor.
Maximum number of failures before opening the circuit
scala.concurrent.duration.FiniteDuration of time after which to consider a call a failure
scala.concurrent.duration.FiniteDuration of time after which to attempt to close the circuit
the upper bound of resetTimeout
The exponential amount that the wait time will be increased
Java API
Java API
Create a new Circuit Breaker from configuration.
The unique name of this circuit breaker instance.
Configuration to look for the settings
ActorSystem
Java API
Java API
Create a new AtomicCircuitBreakerState with exponential backoff strategy.
The resetTimeout
will be increased exponentially for each failed attempt to close the circuit.
Maximum number of failures before opening the circuit
scala.concurrent.duration.FiniteDuration of time after which to consider a call a failure
scala.concurrent.duration.FiniteDuration of time after which to attempt to close the circuit
the upper bound of resetTimeout
The exponential amount that the wait time will be increased
Java API
Java API
Create a new AtomicCircuitBreakerState.
Maximum number of failures before opening the circuit
scala.concurrent.duration.FiniteDuration of time after which to consider a call a failure
scala.concurrent.duration.FiniteDuration of time after which to attempt to close the circuit