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

NameDescription
timeoutTimeout for commitSync, as a duration
offsetsMap 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.