@Component
public class CircuitBreakerFactory
extends java.lang.Object
CircuitBreaker's which are
registered in SpringContext and can therefore be exposed
by FailsafeEndpoint.| Constructor and Description |
|---|
CircuitBreakerFactory() |
| Modifier and Type | Method and Description |
|---|---|
net.jodah.failsafe.CircuitBreaker |
createCircuitBreaker(java.lang.String identifier)
Creates a new
CircuitBreaker which
can be used in regular way and is registered in the
SpringContext. |
@Bean @Scope(scopeName="prototype") public net.jodah.failsafe.CircuitBreaker createCircuitBreaker(java.lang.String identifier)
CircuitBreaker which
can be used in regular way and is registered in the
SpringContext.identifier - which will be shown in the output of the FailsafeEndpoint.CircuitBreaker