链接zookeeper集群

链接到ZooKeeper集合 ZooKeeper类经过其构造函数提供connect功能。构造函数的签名以下 :html ZooKeeper(String connectionString, int sessionTimeout, Watcher watcher) connectionString - ZooKeeper集合主机。java sessionTimeout - 会话超时(以毫秒为单位)。
相关文章
相关标签/搜索