public class DefaultConnectionStrategy extends ZkClientConnectionStrategy
ZkClientConnectionStrategy.ConnectedListener, ZkClientConnectionStrategy.DisconnectedListener, ZkClientConnectionStrategy.ZkUpdate
Constructor and Description |
---|
DefaultConnectionStrategy() |
Modifier and Type | Method and Description |
---|---|
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) |
addConnectedListener, addDisconnectedListener, connected, disconnected
public void connect(String serverAddress, int timeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater) throws IOException, InterruptedException, TimeoutException
connect
in class ZkClientConnectionStrategy
IOException
InterruptedException
TimeoutException
public void reconnect(String serverAddress, int zkClientTimeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater) throws IOException
reconnect
in class ZkClientConnectionStrategy
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.