Package org.apache.kafka.common
Class TopicCollection
java.lang.Object
org.apache.kafka.common.TopicCollection
- Direct Known Subclasses:
TopicCollection.TopicIdCollection
,TopicCollection.TopicNameCollection
public abstract class TopicCollection extends Object
A class used to represent a collection of topics. This collection may define topics by name or ID.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TopicCollection.TopicIdCollection
A class used to represent a collection of topics defined by their topic ID.static class
TopicCollection.TopicNameCollection
A class used to represent a collection of topics defined by their topic name. -
Method Summary
Modifier and Type Method Description static TopicCollection.TopicIdCollection
ofTopicIds(Collection<Uuid> topics)
static TopicCollection.TopicNameCollection
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
-