Class KafkaOffsetMetricManager<K,​V>


  • public class KafkaOffsetMetricManager<K,​V>
    extends Object
    This class is used to manage both the partition and topic level offset metrics.
    • Constructor Detail

      • KafkaOffsetMetricManager

        public KafkaOffsetMetricManager​(Supplier<Map<org.apache.kafka.common.TopicPartition,​OffsetManager>> offsetManagerSupplier,
                                        Supplier<org.apache.kafka.clients.admin.Admin> adminSupplier,
                                        TopologyContext topologyContext)
    • Method Detail

      • registerMetricsForNewTopicPartitions

        public void registerMetricsForNewTopicPartitions​(Set<org.apache.kafka.common.TopicPartition> newAssignment)