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 ibm db2 函数 returns the auto generated id of the last insert query that successfully executed on this connectionphp mcve 函数 set certificate key files and certificates if server requires client certificate verificationphp posix 函数 return the real user id of the current processphp session 函数 获取/设置当前会话 idphp svn 函数 return true if the path points to a directory false otherwisephp wincache 函数 adds a variable in user cache only if variable does not already exist in the cachephp mysql xdevapi session get client idphp mysql xdevapi sqlstatementresult get last insert idphp mysqlnduhconnection returns the auto generated id used in the last queryphp sessionhandler return a new session idphp solrquery returns if a field will only be highlighted if the query matched in this particular fieldphp swoole client check if the connection is established.php swoole http client check if the http connection is connected.php yaf session the valid purposephp 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 zookeeper set a watcher functionphp zookeeperconfig gets the last committed configuration of the zookeeper cluster as it is known to the server to which the client is connected synchronously
关注编程学问公众号