Class TopicListing

java.lang.Object
org.apache.kafka.clients.admin.TopicListing

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

    • TopicListing

      public TopicListing(String name, Uuid topicId, boolean internal)
      For testing purposes only Create an instance with the specified parameters.
      Parameters:
      name - The topic name
      topicId - The topic id.
      internal - Whether the topic is internal to Kafka
    • TopicListing

      public TopicListing(String name, Uuid topicId, boolean internal, TopicType topicType)
      Create an instance with the specified parameters.
      Parameters:
      name - The topic name
      topicId - The topic id.
      internal - Whether the topic is internal to Kafka
      topicType - The topic type. UNKNOWN if not supported by the broker.
  • Method Details

    • topicId

      public Uuid topicId()
      The id of the topic.
    • name

      public 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.
    • topicType

      public TopicType topicType()
      The type of the topic.
    • toString

      public String toString()
      Overrides:
      toString in class Object