LrKafkaConsumer.poll

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

public static <Key, Value> ConsumerRecords<Key, Value> poll(long timeoutMs)

public static <Key, Value> ConsumerRecords<Key, Value> poll(Duration timeout)

Arguments

NameDescription
timeoutMsThe timeout limit for the poll call in milliseconds, as an integer
timeoutThe timeout limit for the poll call as a Duration object

Return values

This function returns records available from the broker.

General information

This function polls the topics that are assigned to this consumer and returns records available from the broker. For more information, see the Apache Kafka documentation.