(PECL rdkafka >= 1.0.0, librdkafka >= 0.9)
RdKafka\KafkaConsumer::getMetadata — Request Metadata from broker
$all_topics
, RdKafka\KafkaConsumerTopic|null $only_topic
, int $timeout_ms
)Request Metadata from broker
Returns a RdKafka\Metadata instance
Example #1 RdKafka\KafkaConsumer::getMetadata() example
<?php
$all = $kafkaConsumer->metadata(true, NULL, 60e3);
$local = $kafkaConsumer->metadata(false, NULL, 60e3);
$topic = $kafkaConsumer->newTopic("myTopic");
$one = $kafkaConsumer->metadata(true, $topic, 60e3);
?>