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
Name | Description |
---|---|
timeoutMs | The timeout limit for the poll call in milliseconds, as an integer |
timeout | The 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 about this function, see the Apache Kafka documentation.