Package org.apache.kafka.common.metrics
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 Summary
Constructors Constructor Description Quota(double bound, boolean upper)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptable(double value)
double
bound()
boolean
equals(Object obj)
int
hashCode()
boolean
isUpperBound()
static Quota
lowerBound(double lowerBound)
String
toString()
static Quota
upperBound(double upperBound)
-