public class DefaultConnectionStrategy extends ZkClientConnectionStrategy
ZkClientConnectionStrategy.ConnectedListener, ZkClientConnectionStrategy.DisconnectedListener, ZkClientConnectionStrategy.ZkUpdate| 构造器和说明 |
|---|
DefaultConnectionStrategy() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connect(String serverAddress,
int timeout,
org.apache.zookeeper.Watcher watcher,
ZkClientConnectionStrategy.ZkUpdate updater) |
void |
reconnect(String serverAddress,
int zkClientTimeout,
org.apache.zookeeper.Watcher watcher,
ZkClientConnectionStrategy.ZkUpdate updater) |
public void connect(String serverAddress, int timeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater) throws IOException, InterruptedException, TimeoutException
public void reconnect(String serverAddress, int zkClientTimeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater) throws IOException, InterruptedException, TimeoutException
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.