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, createSolrZooKeeper, disconnected, getZkCredentialsToAddAutomatically, hasZkCredentialsToAddAutomatically, setZkCredentialsToAddAutomatically
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-2019 Apache Software Foundation. All Rights Reserved.