Executes body
in the context of the circuit breaker identified by id
.
Executes body
in the context of the circuit breaker identified by id
. Whether body
is actually invoked is
implementation-dependent, but implementations should call it at most once.
the result type
the unique identifier for the circuit breaker to use (often a service name)
effect to (optionally) execute within the context of the circuit breaker. May throw a RuntimeException to signal failure.
a future yielding either the same result as body
, or failing with an implementation-dependent exception
A CircuitBreakersPanel is a central point collecting all circuit breakers in Lagom.
Calls to remote services can make use of this facility in order to add circuit breaking capabilities to it.