Constructor and Description |
---|
KafkaMetric(Object lock,
MetricName metricName,
MetricValueProvider<?> valueProvider,
MetricConfig config,
org.apache.kafka.common.utils.Time time) |
Modifier and Type | Method and Description |
---|---|
MetricConfig |
config() |
void |
config(MetricConfig config) |
Measurable |
measurable() |
double |
measurableValue(long timeMs) |
MetricName |
metricName()
A name for this metric
|
Object |
metricValue()
The value of the metric, which may be measurable or a non-measurable gauge
|
public KafkaMetric(Object lock, MetricName metricName, MetricValueProvider<?> valueProvider, MetricConfig config, org.apache.kafka.common.utils.Time time)
public MetricConfig config()
public MetricName metricName()
Metric
metricName
in interface Metric
public Object metricValue()
Metric
metricValue
in interface Metric
public Measurable measurable()
public double measurableValue(long timeMs)
public void config(MetricConfig config)