Constructor and Description |
---|
KafkaMetric(java.lang.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
|
java.lang.Object |
metricValue()
The value of the metric, which may be measurable or a non-measurable gauge
|
double |
value()
Deprecated.
|
public KafkaMetric(java.lang.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 java.lang.Object metricValue()
Metric
metricValue
in interface Metric
public Measurable measurable()
public void config(MetricConfig config)