Zookeeper::getState

(PECL zookeeper >= 0.1.0)

Zookeeper::getStateGet the state of the zookeeper connection

说明

public Zookeeper::getState ( void ) : 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.

Caution

Since version 0.3.0, this method emits ZookeeperException and it's derivatives.

参见

相关文章
php zookeeper the zookeeperconfig classphp datetime set state 魔术方法处理函数php eventhttpconnection sets the retry limit for the connectionphp cubrid 函数 open a connection to a cubrid serverphp cubrid 函数 open a persistent connection to cubrid serverphp cubrid 函数 set autocommit mode of the connectionphp ibm db2 函数 returns or sets the autocommit state for a database connectionphp ibm db2 函数 returns a string containing the sqlstate returned by the last connection attemptphp frontbase 函数 open a connection to a frontbase serverphp mcve 函数 get a textual representation of why a connection failedphp mysqlnduhconnection escapes special characters in a string for use in an sql statement taking into account the current charset of the connectionphp mysqlnduhconnection initialize mysqlnd connectionphp parle lexer dump the state machinephp sam 函数 queries whether a connection is established to a messaging serverphp swoole client set the swoole client parameters before the connection is established.php swoole http client close the http connection.php zookeeper return the client session id only valid if the connections is currently connected ie. last watcher state is zoo connected state php zookeeper return the timeout for this session only valid if the connections is currently connected ie. last watcher state is zoo connected state . this value may change after a server re connectphp zookeeper get the state of the zookeeper connectionphp zookeeper checks if the current zookeeper connection state can be recovered
关注编程学问公众号