Class TopicListing


  • public class TopicListing
    extends java.lang.Object
    A listing of a topic in the cluster.
    • Constructor Summary

      Constructors 
      Constructor Description
      TopicListing​(java.lang.String name, boolean internal)
      Create an instance with the specified parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isInternal()
      Whether the topic is internal to Kafka.
      java.lang.String name()
      The name of the topic.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TopicListing

        public TopicListing​(java.lang.String name,
                            boolean internal)
        Create an instance with the specified parameters.
        Parameters:
        name - The topic name
        internal - Whether the topic is internal to Kafka
    • Method Detail

      • name

        public java.lang.String name()
        The name of the topic.
      • isInternal

        public boolean isInternal()
        Whether the topic is internal to Kafka. An example of an internal topic is the offsets and group management topic: __consumer_offsets.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object