Kafka\ZooKeeper::getTopicDetail PHP 메소드

getTopicDetail() 공개 메소드

get topic detail
public getTopicDetail ( string $topicName ) : string | boolean
$topicName string
리턴 string | boolean
    public function getTopicDetail($topicName)
    {
        $result = array();
        $path = sprintf(self::TOPIC_PATCH, (string) $topicName);
        if ($this->zookeeper->exists($path)) {
            $result = $this->zookeeper->get($path);
            if (!$result) {
                return false;
            }
            $result = json_decode($result, true);
        }
        return $result;
    }