Package org.apache.kafka.clients.admin
Class TopicListing
java.lang.Object
org.apache.kafka.clients.admin.TopicListing
A listing of a topic in the cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionTopicListing(String name, boolean internal) Deprecated.TopicListing(String name, org.apache.kafka.common.Uuid topicId, boolean internal) Create an instance with the specified parameters. -
Method Summary
-
Constructor Details
-
TopicListing
Deprecated.Since 3.0 useTopicListing(String, Uuid, boolean)insteadCreate an instance with the specified parameters.- Parameters:
name- The topic nameinternal- Whether the topic is internal to Kafka
-
TopicListing
Create an instance with the specified parameters.- Parameters:
name- The topic nametopicId- The topic id.internal- Whether the topic is internal to Kafka
-
-
Method Details
-
topicId
public org.apache.kafka.common.Uuid topicId()The id of the topic. -
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
-
TopicListing(String, Uuid, boolean)instead