LrKafkaConsumer.seek

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

public static void seek(TopicPartition partition, long offset)

public static void seek(TopicPartition partition, OffsetAndMetadata offsetAndMetadata)

Arguments

NameDescription
partitionTopic partition that the seek will be performed on.
offsetsOffset to be committed.
offsetAndMetadataAn OffsetAndMetadata object representing the metadata.

Return values

This function does not return any values.

General information

This function overrides the fetch offset that the consumer uses on the next poll.

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