Package org.elasticsearch.common.util
Class MockBigArrays.LimitedBreaker
java.lang.Object
org.elasticsearch.common.breaker.NoopCircuitBreaker
org.elasticsearch.common.util.MockBigArrays.LimitedBreaker
- All Implemented Interfaces:
org.elasticsearch.common.breaker.CircuitBreaker
- Enclosing class:
- MockBigArrays
public static class MockBigArrays.LimitedBreaker
extends org.elasticsearch.common.breaker.NoopCircuitBreaker
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.breaker.CircuitBreaker
org.elasticsearch.common.breaker.CircuitBreaker.Durability, org.elasticsearch.common.breaker.CircuitBreaker.Type
-
Field Summary
Fields inherited from class org.elasticsearch.common.breaker.NoopCircuitBreaker
LIMIT
Fields inherited from interface org.elasticsearch.common.breaker.CircuitBreaker
ACCOUNTING, FIELDDATA, IN_FLIGHT_REQUESTS, PARENT, REQUEST
-
Constructor Summary
ConstructorsConstructorDescriptionLimitedBreaker(String name, org.elasticsearch.common.unit.ByteSizeValue max)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEstimateBytesAndMaybeBreak(long bytes, String label)
void
addWithoutBreaking(long bytes)
Methods inherited from class org.elasticsearch.common.breaker.NoopCircuitBreaker
circuitBreak, getDurability, getLimit, getName, getOverhead, getTrippedCount, getUsed, setLimitAndOverhead
-
Constructor Details
-
LimitedBreaker
-
-
Method Details
-
addEstimateBytesAndMaybeBreak
public void addEstimateBytesAndMaybeBreak(long bytes, String label) throws org.elasticsearch.common.breaker.CircuitBreakingException- Specified by:
addEstimateBytesAndMaybeBreak
in interfaceorg.elasticsearch.common.breaker.CircuitBreaker
- Overrides:
addEstimateBytesAndMaybeBreak
in classorg.elasticsearch.common.breaker.NoopCircuitBreaker
- Throws:
org.elasticsearch.common.breaker.CircuitBreakingException
-
addWithoutBreaking
public void addWithoutBreaking(long bytes)- Specified by:
addWithoutBreaking
in interfaceorg.elasticsearch.common.breaker.CircuitBreaker
- Overrides:
addWithoutBreaking
in classorg.elasticsearch.common.breaker.NoopCircuitBreaker
-