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 domattr checks if attribute is a defined idphp cubrid 函数 return the client library versionphp cubrid 函数 return the id generated for the last updated auto increment columnphp ldap 函数 return first result idphp newt 函数 tells newt to return the terminal to its initial statephp runkit 函数 determines if the current functions return value will be usedphp snmp 函数 return all objects including their respective object id within the specified onephp svn 函数 return true if props are different false otherwisephp swoole 函数 exit the eventloop only available at the client sidephp mysql xdevapi session get client idphp sessionhandler return a new session idphp splheap tells if the heap is in a corrupted statephp stomp gets the current stomp session idphp swoole http client check if the http connection is connected.php swoole table check current if the current row is valid.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 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
关注编程学问公众号