Package org.apache.kafka.common.metrics
Class KafkaMetric
- java.lang.Object
-
- org.apache.kafka.common.metrics.KafkaMetric
-
-
Constructor Summary
Constructors Constructor Description KafkaMetric(Object lock, MetricName metricName, MetricValueProvider<?> valueProvider, MetricConfig config, org.apache.kafka.common.utils.Time time)
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
KafkaMetric
public KafkaMetric(Object lock, MetricName metricName, MetricValueProvider<?> valueProvider, MetricConfig config, org.apache.kafka.common.utils.Time time)
-
-
Method Detail
-
config
public MetricConfig config()
-
metricName
public MetricName metricName()
Description copied from interface:Metric
A name for this metric- Specified by:
metricName
in interfaceMetric
-
metricValue
public Object 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
public Measurable measurable()
-
config
public void config(MetricConfig config)
-
-