public class CircuitBreakerRegistry
extends java.lang.Object
| Constructor and Description |
|---|
CircuitBreakerRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
java.util.Map<java.lang.String,net.jodah.failsafe.CircuitBreaker> |
getConcurrentBreakerMap()
Returns the
Map with registered circuit breakers. |
net.jodah.failsafe.CircuitBreaker |
getOrCreate(java.lang.String identifier)
Returns the registered
CircuitBreaker for the given identifier or creates a new one. |
public java.util.Map<java.lang.String,net.jodah.failsafe.CircuitBreaker> getConcurrentBreakerMap()
Map with registered circuit breakers.public net.jodah.failsafe.CircuitBreaker getOrCreate(java.lang.String identifier)
CircuitBreaker for the given identifier or creates a new one.identifier - which will be shown in the output of the FailsafeEndpoint.CircuitBreaker@PreDestroy
public void destroy()
throws java.lang.Exception
java.lang.Exception