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