Share this page

# LrKafkaProducer.partitionsFor

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

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

## Arguments

Name | Description
--- | ---
topic | Name of the topic to request partition info for.

## Return Values

Returns the partition metadata for a specific topic.

## General information

This function retrieves the partition metadata for a 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: