Interface ExponentialHistogramCircuitBreaker


public interface ExponentialHistogramCircuitBreaker
Interface for a memory-allocation circuit breaker used for ReleasableExponentialHistograms.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    adjustBreaker(long bytesAllocated)
    Adjusts the circuit breaker, potentially throwing an exception if the limit is exceeded.
     
  • Method Details

    • adjustBreaker

      void adjustBreaker(long bytesAllocated)
      Adjusts the circuit breaker, potentially throwing an exception if the limit is exceeded. Guaranteed to never cause an exception when called with a negative number to reduce the breaker count.
      Parameters:
      bytesAllocated - the number of bytes allocated, or a negative value if deallocated
    • noop