Module org.elasticsearch.server
Class CircuitBreakerService
java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.indices.breaker.CircuitBreakerService
- All Implemented Interfaces:
Closeable,AutoCloseable,LifecycleComponent,Releasable
- Direct Known Subclasses:
HierarchyCircuitBreakerService,NoneCircuitBreakerService,PreallocatedCircuitBreakerService
Interface for Circuit Breaker services, which provide breakers to classes
that load field data.
-
Field Summary
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoClose()protected voiddoStart()protected voiddoStop()abstract CircuitBreakergetBreaker(String name) abstract AllCircuitBreakerStatsstats()abstract CircuitBreakerStatsMethods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, start, stop
-
Constructor Details
-
CircuitBreakerService
protected CircuitBreakerService()
-
-
Method Details
-
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:
doStartin classAbstractLifecycleComponent
-
doStop
protected void doStop()- Specified by:
doStopin classAbstractLifecycleComponent
-
doClose
protected void doClose()- Specified by:
doClosein classAbstractLifecycleComponent
-