Class Quota
java.lang.Object
org.apache.kafka.common.metrics.Quota
An upper or lower bound for metrics
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionbooleanacceptable(double value) doublebound()booleaninthashCode()booleanstatic QuotalowerBound(double lowerBound) toString()static QuotaupperBound(double upperBound)
Constructor Details
Quota
public Quota(double bound, boolean upper)
Method Details
upperBound
lowerBound
isUpperBound
public boolean isUpperBound()bound
public double bound()acceptable
public boolean acceptable(double value) hashCode
equals
toString