Zookeeper::getClientId

(PECL zookeeper >= 0.1.0)

Zookeeper::getClientIdReturn the client session id, only valid if the connections is currently connected (ie. last watcher state is ZOO_CONNECTED_STATE)

说明

public Zookeeper::getClientId ( void ) : int

返回值

Returns the client session id on success, and false on failure.

错误/异常

This method emits PHP error/warning when it could not get client session id.

Caution

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

参见

相关文章
php cubrid 函数 return the id generated for the last updated auto increment columnphp posix 函数 return the real group id of the current processphp posix 函数 return info about a group by group idphp session pgsql 函数 increments error counts and sets last error messagephp gearmanjob get last return codephp 链接服务器 persistent connections version up to 1.1.4 *only* php mongocommandcursor checks if the cursor is reading a valid resultphp mongocursor checks if the cursor is reading a valid resultphp mongodb driver manager start a new client session for use with this clientphp mysql xdevapi session get client idphp sessionhandler return a new session idphp solrdocument checks if the current position internally is still validphp splobjectstorage returns if the current iterator entry is validphp swoole event exit the eventloop only available at client side.php swoole http client check if the http connection is connected.php xmlreader indicates if the parsed document is validphp 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 checks if the current zookeeper connection state can be recoveredphp zookeeperconfig gets the last committed configuration of the zookeeper cluster as it is known to the server to which the client is connected synchronously
关注编程学问公众号