Package org.apache.kafka.clients.admin
Class ListConsumerGroupsResult
- java.lang.Object
-
- org.apache.kafka.clients.admin.ListConsumerGroupsResult
-
@Evolving public class ListConsumerGroupsResult extends java.lang.Object
The result of theAdmin.listConsumerGroups()
call.The API of this class is evolving, see
Admin
for details.
-
-
Constructor Summary
Constructors Constructor Description ListConsumerGroupsResult(org.apache.kafka.common.internals.KafkaFutureImpl<java.util.Collection<java.lang.Object>> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KafkaFuture<java.util.Collection<ConsumerGroupListing>>
all()
Returns a future that yields either an exception, or the full set of consumer group listings.KafkaFuture<java.util.Collection<java.lang.Throwable>>
errors()
Returns a future which yields just the errors which occurred.KafkaFuture<java.util.Collection<ConsumerGroupListing>>
valid()
Returns a future which yields just the valid listings.
-
-
-
Method Detail
-
all
public KafkaFuture<java.util.Collection<ConsumerGroupListing>> all()
Returns a future that yields either an exception, or the full set of consumer group listings. In the event of a failure, the future yields nothing but the first exception which occurred.
-
valid
public KafkaFuture<java.util.Collection<ConsumerGroupListing>> valid()
Returns a future which yields just the valid listings. This future never fails with an error, no matter what happens. Errors are completely ignored. If nothing can be fetched, an empty collection is yielded. If there is an error, but some results can be returned, this future will yield those partial results. When using this future, it is a good idea to also check the errors future so that errors can be displayed and handled.
-
errors
public KafkaFuture<java.util.Collection<java.lang.Throwable>> errors()
Returns a future which yields just the errors which occurred. If this future yields a non-empty collection, it is very likely that elements are missing from the valid() set. This future itself never fails with an error. In the event of an error, this future will successfully yield a collection containing at least one exception.
-
-