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
All Methods Instance Methods Concrete Methods 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 Detail
-
QuotaViolationException
public QuotaViolationException(KafkaMetric metric, double value, double bound)
-
-
Method Detail
-
metric
public KafkaMetric metric()
-
value
public double value()
-
bound
public double bound()
-
fillInStackTrace
public Throwable fillInStackTrace()
- Overrides:
fillInStackTrace
in classThrowable
-
-