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

    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

    FIELDDATA, IN_FLIGHT_REQUESTS, PARENT, REQUEST
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
     

    Methods inherited from class org.elasticsearch.common.breaker.NoopCircuitBreaker

    addWithoutBreaking, circuitBreak, getDurability, getLimit, getName, getOverhead, getTrippedCount, getUsed, setLimitAndOverhead

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TestCircuitBreaker

      public TestCircuitBreaker()
  • Method Details

    • addEstimateBytesAndMaybeBreak

      public void addEstimateBytesAndMaybeBreak(long bytes, String label) throws org.elasticsearch.common.breaker.CircuitBreakingException
      Specified by:
      addEstimateBytesAndMaybeBreak in interface org.elasticsearch.common.breaker.CircuitBreaker
      Overrides:
      addEstimateBytesAndMaybeBreak in class org.elasticsearch.common.breaker.NoopCircuitBreaker
      Throws:
      org.elasticsearch.common.breaker.CircuitBreakingException
    • startBreaking

      public void startBreaking()
    • stopBreaking

      public void stopBreaking()