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 mysql 兼容性函数 return the number of rows affected by the last sql statementphp cubrid 函数 return the id generated for the last updated auto increment columnphp enchant 函数 returns the last error of the current spelling sessionphp ldap 函数 return the ldap error number of the last ldap commandphp ldap 函数 return the ldap error message of the last ldap commandphp maxdb 函数 returns the auto generated id used in the last queryphp posix 函数 return info about a user by user idphp snmp 函数 return all objects including their respective object id within the specified onephp svn 函数 deletes a file or a directory return true if all is ok false otherwisephp gearmanclient get the last gearman return codephp imagick return if the image has a matte channelphp imagick checks if the current item is validphp mysql xdevapi session get client idphp sessionhandler return a new session idphp splpriorityqueue tells if the priority queue is in a corrupted statephp swoole http client check if the http connection is connected.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 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
关注编程学问公众号