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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringError message thrown when the breaker randomly trips.Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.elasticsearch.indices.breaker.CircuitBreakerService
doClose, doStart, doStopMethods 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:
getBreakerin classCircuitBreakerService
-
stats
- Specified by:
statsin classCircuitBreakerService
-
stats
- Specified by:
statsin classCircuitBreakerService
-