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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TopicCollection.TopicIdCollection
ofTopicIds(Collection<Uuid> topics)
static TopicCollection.TopicNameCollection
ofTopicNames(Collection<String> topics)
-
-
-
Method Detail
-
ofTopicIds
public static TopicCollection.TopicIdCollection ofTopicIds(Collection<Uuid> topics)
- Returns:
- a collection of topics defined by topic ID
-
ofTopicNames
public static TopicCollection.TopicNameCollection ofTopicNames(Collection<String> topics)
- Returns:
- a collection of topics defined by topic name
-
-