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.
Reference to Akka scheduler
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
Java API: Create a new CircuitBreaker.
Java API: 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.
Reference to Akka scheduler
Maximum number of failures before opening the circuit
java.time.Duration of time after which to consider a call a failure
java.time.Duration of time after which to attempt to close the circuit
Java API: Create a new CircuitBreaker.
Java API: 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.
Reference to Akka scheduler
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
(Since version 2.5.12) Use the overloaded one which accepts java.time.Duration instead.
Companion object providing factory methods for Circuit Breaker which runs callbacks in caller's thread