Package org.apache.kafka.common
Interface Metric
-
public interface Metric
A metric tracked for monitoring purposes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description MetricName
metricName()
A name for this metricjava.lang.Object
metricValue()
The value of the metric, which may be measurable or a non-measurable gaugedouble
value()
Deprecated.As of 1.0.0, usemetricValue()
instead.
-
-
-
Method Detail
-
metricName
MetricName metricName()
A name for this metric
-
value
@Deprecated double value()
Deprecated.As of 1.0.0, usemetricValue()
instead. This will be removed in a future major release.The value of the metric as double if the metric is measurable and `0.0` otherwise.
-
metricValue
java.lang.Object metricValue()
The value of the metric, which may be measurable or a non-measurable gauge
-
-