Force a state change on this breaker.
Event callback for when the circuit changes state
Event callback for when the circuit changes state
the new state of the circuit
Shutdown the circuit breaker.
Shutdown the circuit breaker.
Wrap the passed call in a circuit breaking context.
Wrap the passed call in a circuit breaking context. Possibly fails with a CircuitBroken failure in the future result.
Circuit breaker which can be used for testing purposes by forcing state changes.