Class KafkaMetricMutableWrapper
java.lang.Object
org.apache.flink.streaming.connectors.kafka.internals.metrics.KafkaMetricMutableWrapper
- All Implemented Interfaces:
org.apache.flink.metrics.Gauge<Double>,org.apache.flink.metrics.Metric
@Internal
public class KafkaMetricMutableWrapper
extends Object
implements org.apache.flink.metrics.Gauge<Double>
Gauge for getting the current value of a Kafka metric.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()voidsetKafkaMetric(org.apache.kafka.common.Metric kafkaMetric) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.metrics.Gauge
getMetricType
-
Constructor Details
-
KafkaMetricMutableWrapper
public KafkaMetricMutableWrapper(org.apache.kafka.common.Metric metric)
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceorg.apache.flink.metrics.Gauge<Double>
-
setKafkaMetric
public void setKafkaMetric(org.apache.kafka.common.Metric kafkaMetric)
-