RdKafka\TopicPartition::__construct

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

RdKafka\TopicPartition::__constructConstructor

Description

public RdKafka\TopicPartition::__construct ( string $topic , integer $partition [, integer $offset = 0 ] )

Constructor

Parameters

topic (string)

Topic name

partition (integer)

Partition ID

offset (integer)

Offset

Examples

Example #1 RdKafka\TopicPartition::__construct() example

<?php
new RdKafka\TopicPartition("myTopic"1);
?>