Package org.apache.kafka.clients.admin
Class ListConsumerGroupOffsetsResult
java.lang.Object
org.apache.kafka.clients.admin.ListConsumerGroupOffsetsResult
The result of the
Admin.listConsumerGroupOffsets(Map) and
Admin.listConsumerGroupOffsets(String) call.
The API of this class is evolving, see Admin for details.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.common.KafkaFuture<Map<String, Map<org.apache.kafka.common.TopicPartition, OffsetAndMetadata>>> all()Return a future which yields allMap<String, Map<TopicPartition, OffsetAndMetadata>objects, if requests for all the groups succeed.org.apache.kafka.common.KafkaFuture<Map<org.apache.kafka.common.TopicPartition, OffsetAndMetadata>> Return a future which yields a map of topic partitions to OffsetAndMetadata objects.org.apache.kafka.common.KafkaFuture<Map<org.apache.kafka.common.TopicPartition, OffsetAndMetadata>> partitionsToOffsetAndMetadata(String groupId) Return a future which yields a map of topic partitions to OffsetAndMetadata objects for the specified group.
-
Method Details
-
partitionsToOffsetAndMetadata
public org.apache.kafka.common.KafkaFuture<Map<org.apache.kafka.common.TopicPartition,OffsetAndMetadata>> partitionsToOffsetAndMetadata()Return a future which yields a map of topic partitions to OffsetAndMetadata objects. If the group does not have a committed offset for this partition, the corresponding value in the returned map will be null. -
partitionsToOffsetAndMetadata
public org.apache.kafka.common.KafkaFuture<Map<org.apache.kafka.common.TopicPartition,OffsetAndMetadata>> partitionsToOffsetAndMetadata(String groupId) Return a future which yields a map of topic partitions to OffsetAndMetadata objects for the specified group. If the group doesn't have a committed offset for a specific partition, the corresponding value in the returned map will be null. -
all
public org.apache.kafka.common.KafkaFuture<Map<String,Map<org.apache.kafka.common.TopicPartition, all()OffsetAndMetadata>>> Return a future which yields allMap<String, Map<TopicPartition, OffsetAndMetadata>objects, if requests for all the groups succeed.
-