Package org.apache.kafka.clients.admin
Class ListOffsetsResult
java.lang.Object
org.apache.kafka.clients.admin.ListOffsetsResult
The result of the
Admin.listOffsets(Map) call.
The API of this class is evolving, see AdminClient for details.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionListOffsetsResult(Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.common.KafkaFuture<ListOffsetsResult.ListOffsetsResultInfo>> futures) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.common.KafkaFuture<Map<org.apache.kafka.common.TopicPartition, ListOffsetsResult.ListOffsetsResultInfo>> all()Return a future which succeeds only if offsets for all specified partitions have been successfully retrieved.org.apache.kafka.common.KafkaFuture<ListOffsetsResult.ListOffsetsResultInfo> partitionResult(org.apache.kafka.common.TopicPartition partition) Return a future which can be used to check the result for a given partition.
-
Constructor Details
-
ListOffsetsResult
public ListOffsetsResult(Map<org.apache.kafka.common.TopicPartition, org.apache.kafka.common.KafkaFuture<ListOffsetsResult.ListOffsetsResultInfo>> futures)
-
-
Method Details
-
partitionResult
public org.apache.kafka.common.KafkaFuture<ListOffsetsResult.ListOffsetsResultInfo> partitionResult(org.apache.kafka.common.TopicPartition partition) Return a future which can be used to check the result for a given partition. -
all
public org.apache.kafka.common.KafkaFuture<Map<org.apache.kafka.common.TopicPartition,ListOffsetsResult.ListOffsetsResultInfo>> all()Return a future which succeeds only if offsets for all specified partitions have been successfully retrieved.
-