RdKafka\TopicPartition::getPartition

(PECL rdkafka >= 1.0.0, librdkafka >= 0.9)

RdKafka\TopicPartition::getPartitionGet the partition ID

Description

public RdKafka\TopicPartition::getPartition ( void ) : integer

Gets the partition ID.

Parameters

This function has no parameters.

Return Values

Returns the partition ID as an integer.