Class TestCircuitBreaker
java.lang.Object
org.opensearch.core.common.breaker.NoopCircuitBreaker
org.opensearch.common.breaker.TestCircuitBreaker
- All Implemented Interfaces:
org.opensearch.core.common.breaker.CircuitBreaker
public class TestCircuitBreaker
extends org.opensearch.core.common.breaker.NoopCircuitBreaker
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.common.breaker.CircuitBreaker
org.opensearch.core.common.breaker.CircuitBreaker.Durability, org.opensearch.core.common.breaker.CircuitBreaker.Type -
Field Summary
Fields inherited from class org.opensearch.core.common.breaker.NoopCircuitBreaker
LIMITFields inherited from interface org.opensearch.core.common.breaker.CircuitBreaker
FIELDDATA, IN_FLIGHT_REQUESTS, PARENT, REQUEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleaddEstimateBytesAndMaybeBreak(long bytes, String label) voidvoidMethods inherited from class org.opensearch.core.common.breaker.NoopCircuitBreaker
addWithoutBreaking, circuitBreak, getDurability, getLimit, getName, getOverhead, getTrippedCount, getUsed, setLimitAndOverhead
-
Constructor Details
-
TestCircuitBreaker
public TestCircuitBreaker()
-
-
Method Details
-
addEstimateBytesAndMaybeBreak
public double addEstimateBytesAndMaybeBreak(long bytes, String label) throws org.opensearch.core.common.breaker.CircuitBreakingException - Specified by:
addEstimateBytesAndMaybeBreakin interfaceorg.opensearch.core.common.breaker.CircuitBreaker- Overrides:
addEstimateBytesAndMaybeBreakin classorg.opensearch.core.common.breaker.NoopCircuitBreaker- Throws:
org.opensearch.core.common.breaker.CircuitBreakingException
-
startBreaking
public void startBreaking() -
stopBreaking
public void stopBreaking()
-