Share this page

# LrKafkaConsumer.commitSync

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

`public static void commitSync()`

`public static void commitSync(Duration timeout)`

`public static void commitSync(Map<TopicPartition, OffsetAndMetadata> offsets)`

`public static void commitSync(Map<TopicPartition, OffsetAndMetadata> offsets, Duration timeout)`

## Arguments

Name | Description
--- | ---
timeout | Timeout for commitSync, as a duration
offsets | Map of partitions and their respective offsets to be committed. If this is not specified, the function commits offsets returned on the last poll for the entire subscribed list of topics and partitions.

## Return values

This function does not return any values.

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

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