Package org.elasticsearch.common.breaker
Class TestCircuitBreaker
java.lang.Object
org.elasticsearch.common.breaker.NoopCircuitBreaker
org.elasticsearch.common.breaker.TestCircuitBreaker
- All Implemented Interfaces:
org.elasticsearch.common.breaker.CircuitBreaker
public class TestCircuitBreaker
extends org.elasticsearch.common.breaker.NoopCircuitBreaker
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TestCircuitBreaker() -
Method Summary
Modifier and Type Method Description doubleaddEstimateBytesAndMaybeBreak(long bytes, java.lang.String label)voidstartBreaking()voidstopBreaking()
-
Constructor Details
-
TestCircuitBreaker
public TestCircuitBreaker()
-
-
Method Details
-
addEstimateBytesAndMaybeBreak
public double addEstimateBytesAndMaybeBreak(long bytes, java.lang.String label) throws org.elasticsearch.common.breaker.CircuitBreakingException- Specified by:
addEstimateBytesAndMaybeBreakin interfaceorg.elasticsearch.common.breaker.CircuitBreaker- Overrides:
addEstimateBytesAndMaybeBreakin classorg.elasticsearch.common.breaker.NoopCircuitBreaker- Throws:
org.elasticsearch.common.breaker.CircuitBreakingException
-
startBreaking
public void startBreaking() -
stopBreaking
public void stopBreaking()
-