Class KafkaAdminUtils


  • public class KafkaAdminUtils
    extends Object
    Kafka administration utilities.
    Author:
    Keivan Khalichi
    • Method Detail

      • topicLags

        public Map<String,​Long> topicLags()
        Calculates consumer lag for all active consumers. NOTE: if a topic has no consumers, then it will not appear in the return mapping.
        Returns:
        map of topic name to total consumer lag