(PECL rdkafka >= 1.0.0, librdkafka >= 0.9)
RdKafka\KafkaConsumer::__construct — Constructor
$conf
)conf
(RdKafka\Conf)
The conf
object must have group.id
set to the consumer group to join.
Example #1 RdKafka\KafkaConsumer::__construct() example
<?php
$conf = new RdKafka\Conf();
$conf->set("group.id", "myGroupID");
$kafkaConsumer = new RdKafka\KafkaConsumer($conf);
?>