Package org.elasticsearch.indices
Class CrankyCircuitBreakerService
java.lang.Object
org.elasticsearch.indices.breaker.CircuitBreakerService
org.elasticsearch.indices.CrankyCircuitBreakerService
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 String
Error message thrown when the breaker randomly trips. -
Constructor Summary
Constructors -
Method Summary
-
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
-