Package org.apache.kafka.common.metrics
Class KafkaMetric
java.lang.Object
org.apache.kafka.common.metrics.KafkaMetric
- All Implemented Interfaces:
Metric
-
Constructor Summary
ConstructorDescriptionKafkaMetric
(Object lock, MetricName metricName, MetricValueProvider<?> valueProvider, MetricConfig config, org.apache.kafka.common.utils.Time time) -
Method Summary
Modifier and TypeMethodDescriptionconfig()
void
config
(MetricConfig config) A name for this metricThe 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
-