Class Quota

java.lang.Object
org.apache.kafka.common.metrics.Quota

public final class Quota extends Object
An upper or lower bound for metrics
  • Constructor Details

    • Quota

      public Quota(double bound, boolean upper)
  • Method Details

    • upperBound

      public static Quota upperBound(double upperBound)
    • lowerBound

      public static Quota lowerBound(double lowerBound)
    • isUpperBound

      public boolean isUpperBound()
    • bound

      public double bound()
    • acceptable

      public boolean acceptable(double value)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object