Package org.apache.kafka.common.metrics
Class KafkaMetric
java.lang.Object
org.apache.kafka.common.metrics.KafkaMetric
- All Implemented Interfaces:
Metric
public final class KafkaMetric extends Object implements Metric
-
Constructor Summary
Constructors Constructor Description KafkaMetric(Object lock, MetricName metricName, MetricValueProvider<?> valueProvider, MetricConfig config, org.apache.kafka.common.utils.Time time)
-
Method Summary
Modifier and Type Method Description MetricConfig
config()
void
config(MetricConfig config)
Measurable
measurable()
MetricName
metricName()
A name for this metricObject
metricValue()
The value of the metric, which may be measurable or a non-measurable gauge
-
Constructor Details
-
KafkaMetric
public KafkaMetric(Object lock, MetricName metricName, MetricValueProvider<?> valueProvider, MetricConfig config, org.apache.kafka.common.utils.Time time)
-
-
Method Details
-
config
-
metricName
Description copied from interface:Metric
A name for this metric- Specified by:
metricName
in interfaceMetric
-
metricValue
Description copied from interface:Metric
The value of the metric, which may be measurable or a non-measurable gauge- Specified by:
metricValue
in interfaceMetric
-
measurable
-
config
-