- Companion
- class
Type members
Classlikes
Value members
Concrete methods
Create a CircuitBreaker with the given tripping strategy
Create a CircuitBreaker with the given tripping strategy
- Value Params
- isFailure
Only failures that match according to
isFailure
are treated as failures by the circuit breaker. Other failures are passed on, circumventing the circuit breaker's failure counter.- onStateChange
Observer for circuit breaker state changes
- resetPolicy
Reset schedule after too many failures. Typically an exponential backoff strategy is used.
- trippingStrategy
Determines under which conditions the CircuitBraker trips
Create a CircuitBreaker that fails when a number of successive failures (no pun intended) has been counted
Create a CircuitBreaker that fails when a number of successive failures (no pun intended) has been counted
- Value Params
- isFailure
Only failures that match according to
isFailure
are treated as failures by the circuit breaker. Other failures are passed on, circumventing the circuit breaker's failure counter.- maxFailures
Maximum number of failures before tripping the circuit breaker
- onStateChange
Observer for circuit breaker state changes
- resetPolicy
Reset schedule after too many failures. Typically an exponential backoff strategy is used.
- Returns
The CircuitBreaker as a managed resource