Class NoopCircuitBreaker

java.lang.Object
org.opensearch.core.common.breaker.NoopCircuitBreaker
All Implemented Interfaces:
CircuitBreaker

public class NoopCircuitBreaker extends Object implements CircuitBreaker
A CircuitBreaker that doesn't increment or adjust, and all operations are basically noops. It never trips, limit is always -1, always returns 0 for all metrics.
Opensearch.internal:
  • Field Details

    • LIMIT

      public static final int LIMIT
      The limit of this breaker is always -1
      See Also:
  • Constructor Details

    • NoopCircuitBreaker

      public NoopCircuitBreaker(String name)
      Creates a new NoopCircuitBreaker (that never trip) with the given name
      Parameters:
      name - the name of this breaker
  • Method Details