Package org.apache.kafka.common.metrics
Class QuotaViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.kafka.common.KafkaException
org.apache.kafka.common.metrics.QuotaViolationException
- All Implemented Interfaces:
Serializable
public class QuotaViolationException extends KafkaException
Thrown when a sensor records a value that causes a metric to go outside the bounds configured as its quota
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description QuotaViolationException(KafkaMetric metric, double value, double bound)
-
Method Summary
Modifier and Type Method Description double
bound()
Throwable
fillInStackTrace()
KafkaMetric
metric()
String
toString()
double
value()
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
QuotaViolationException
-
-
Method Details
-
metric
-
value
public double value() -
bound
public double bound() -
toString
-
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-