Package org.apache.kafka.clients.admin
Class ListTopicsResult
- java.lang.Object
-
- org.apache.kafka.clients.admin.ListTopicsResult
-
@Evolving public class ListTopicsResult extends java.lang.Object
The result of theAdmin.listTopics()
call. The API of this class is evolving, seeAdmin
for details.
-
-
Constructor Summary
Constructors Constructor Description ListTopicsResult(KafkaFuture<java.util.Map<java.lang.String,TopicListing>> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KafkaFuture<java.util.Collection<TopicListing>>
listings()
Return a future which yields a collection of TopicListing objects.KafkaFuture<java.util.Set<java.lang.String>>
names()
Return a future which yields a collection of topic names.KafkaFuture<java.util.Map<java.lang.String,TopicListing>>
namesToListings()
Return a future which yields a map of topic names to TopicListing objects.
-
-
-
Constructor Detail
-
ListTopicsResult
public ListTopicsResult(KafkaFuture<java.util.Map<java.lang.String,TopicListing>> future)
-
-
Method Detail
-
namesToListings
public KafkaFuture<java.util.Map<java.lang.String,TopicListing>> namesToListings()
Return a future which yields a map of topic names to TopicListing objects.
-
listings
public KafkaFuture<java.util.Collection<TopicListing>> listings()
Return a future which yields a collection of TopicListing objects.
-
names
public KafkaFuture<java.util.Set<java.lang.String>> names()
Return a future which yields a collection of topic names.
-
-