Zookeeper::getState
PHP Manual
PHP Manual»Zookeeper»Zookeeper::getState

Zookeeper::getState

(PECL zookeeper >= 0.1.0)

Zookeeper::getStateGet the state of the zookeeper connection

Опис

public function Zookeeper::getState(): int

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns the state of zookeeper connection on success, and false on failure.

Помилки/виключення

This method emits PHP error/warning when it fails to get state of zookeeper connection.

Застереження

Since version 0.3.0, this method emits ZookeeperException and its derivatives.

Прогляньте також

To Top