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