public class CircuitBreakerRegistry extends Object
| Constructor and Description |
|---|
CircuitBreakerRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Map<String,net.jodah.failsafe.CircuitBreaker> |
getConcurrentBreakerMap()
Returns the
Map with registered circuit breakers. |
net.jodah.failsafe.CircuitBreaker |
getOrCreate(String identifier)
Returns the registered
CircuitBreaker for the given identifier or creates a new one. |
public Map<String,net.jodah.failsafe.CircuitBreaker> getConcurrentBreakerMap()
Map with registered circuit breakers.Mappublic net.jodah.failsafe.CircuitBreaker getOrCreate(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 Exception
ExceptionCopyright © 2017 Zalando SE. All rights reserved.