Share this page

# LrKafkaConsumer.partitionsFor

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

`public static List<PartitionInfo> partitionsFor(String topic)`

`public static List<PartitionInfo> partitionsFor(String topic, Duration timeout)`

## Arguments

Name | Description
--- | ---
topic | Name of the topic to which the partitions belong
timeout | Timeout limit, as a duration object

## Return values

Returns the partitions for the given topic.

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: