Share this page

# 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.

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