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() |
MetricName |
metricName()
A name for this metric
|
Object |
metricValue()
The value of the metric, which may be measurable or a non-measurable gauge
|
double |
value()
Deprecated.
|
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
@Deprecated public double value()
Metric.value()
for the details on why this is deprecated.public Object metricValue()
Metric
metricValue
in interface Metric
public Measurable measurable()
public void config(MetricConfig config)