Package org.elasticsearch.indices
Class CrankyCircuitBreakerService
java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.indices.breaker.CircuitBreakerService
org.elasticsearch.indices.CrankyCircuitBreakerService
- All Implemented Interfaces:
Closeable
,AutoCloseable
,LifecycleComponent
,org.elasticsearch.core.Releasable
CircuitBreakerService
that fails one twentieth of the time when you
add bytes. This is useful to make sure code responds sensibly to circuit
breaks at unpredictable times.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Error message thrown when the breaker randomly trips.Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle
-
Constructor Summary
-
Method Summary
Methods inherited from class org.elasticsearch.indices.breaker.CircuitBreakerService
doClose, doStart, doStop
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, start, stop
-
Field Details
-
ERROR_MESSAGE
Error message thrown when the breaker randomly trips.- See Also:
-
-
Constructor Details
-
CrankyCircuitBreakerService
public CrankyCircuitBreakerService()
-
-
Method Details
-
getBreaker
- Specified by:
getBreaker
in classCircuitBreakerService
-
stats
- Specified by:
stats
in classCircuitBreakerService
-
stats
- Specified by:
stats
in classCircuitBreakerService
-