Zookeeper::setWatcher

Set a watcher function.

Beschreibung

public bool Zookeeper::setWatcher ( callable $watcher_cb )

Parameter-Liste

watcher_cb

A watch will be set at the server to notify the client if the node changes.

Rückgabewerte

Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.

Fehler/Exceptions

This method emits PHP error/warning when parameters count or types are wrong or fail to set watcher.

Siehe auch

  • Zookeeper::exists
  • Zookeeper::get