Class CircuitBreakerService
java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.indices.breaker.CircuitBreakerService
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,LifecycleComponent
,Releasable
- Direct Known Subclasses:
HierarchyCircuitBreakerService
,NoneCircuitBreakerService
public abstract class CircuitBreakerService extends AbstractLifecycleComponent
Interface for Circuit Breaker services, which provide breakers to classes
that load field data.
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
CircuitBreakerService()
-
Method Summary
Modifier and Type Method Description protected void
doClose()
protected void
doStart()
protected void
doStop()
abstract CircuitBreaker
getBreaker(java.lang.String name)
abstract void
registerBreaker(BreakerSettings breakerSettings)
Allows to register of a custom circuit breaker.abstract AllCircuitBreakerStats
stats()
abstract CircuitBreakerStats
stats(java.lang.String name)
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
-
Constructor Details
-
CircuitBreakerService
protected CircuitBreakerService()
-
-
Method Details
-
registerBreaker
Allows to register of a custom circuit breaker. -
getBreaker
- Returns:
- the breaker that can be used to register estimates against
-
stats
- Returns:
- stats about all breakers
-
stats
- Returns:
- stats about a specific breaker
-
doStart
protected void doStart()- Specified by:
doStart
in classAbstractLifecycleComponent
-
doStop
protected void doStop()- Specified by:
doStop
in classAbstractLifecycleComponent
-
doClose
protected void doClose()- Specified by:
doClose
in classAbstractLifecycleComponent
-