Share this page

# LrKafkaConsumer.endOffsets

Calls the endOffsets method on the KafkaConsumer initialized for the Vuser.

`public static Map<TopicPartition, Long> endOffsets(Collection<TopicPartition> partitions)`

`public static Map<TopicPartition, Long> endOffsets(Collection<TopicPartition> partitions, Duration timeout)`

## Arguments

Name | Description
--- | ---
partitions | Collection of partitions
timeout | Timeout limit, as a duration object

## Return values

Returns the end offset for the given partitions.

For more information about this function, see the Apache Kafka documentation.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: