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 classTopicCollection.TopicIdCollectionA class used to represent a collection of topics defined by their topic ID.static classTopicCollection.TopicNameCollectionA class used to represent a collection of topics defined by their topic name. -
Method Summary
Modifier and Type Method Description static TopicCollection.TopicIdCollectionofTopicIds(Collection<Uuid> topics)static TopicCollection.TopicNameCollectionofTopicNames(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
-