Kafka\ZooKeeper::watchCallback PHP Метод

watchCallback() публичный Метод

Wath event callback warper
public watchCallback ( integer $event_type, integer $stat, string $path ) : the
$event_type integer
$stat integer
$path string
Результат the return of the callback or null
    public function watchCallback($event_type, $stat, $path)
    {
        if (!isset($this->callback[$path])) {
            return null;
        }
        foreach ($this->callback[$path] as $callback) {
            $this->zookeeper->getChildren($path, array($this, 'watchCallback'));
            return call_user_func($callback);
        }
    }