Class TopicCollection
java.lang.Object
org.apache.kafka.common.TopicCollection
- Direct Known Subclasses:
TopicCollection.TopicIdCollection,TopicCollection.TopicNameCollection
A class used to represent a collection of topics. This collection may define topics by name or ID.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA class used to represent a collection of topics defined by their topic ID.static classA class used to represent a collection of topics defined by their topic name.Method Summary
Modifier and TypeMethodDescriptionofTopicIds(Collection<Uuid> topics) ofTopicNames(Collection<String> topics)
Method Details
ofTopicIds
- Returns:
- a collection of topics defined by topic ID
ofTopicNames
- Returns:
- a collection of topics defined by topic name