Package org.apache.kafka.common
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
Modifier and TypeClassDescriptionstatic class
A class used to represent a collection of topics defined by their topic ID.static class
A 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
-