public class DefaultZooKeeperFactory extends Object implements ZooKeeperFactory
| Constructor and Description |
|---|
DefaultZooKeeperFactory(String zkHostStr,
int timeoutMillis) |
DefaultZooKeeperFactory(String zkHostStr,
int timeoutMillis,
int maxRetries,
int retryIntervalMillis) |
| Modifier and Type | Method and Description |
|---|---|
ZooKeeperIface |
create(org.apache.zookeeper.Watcher watcher)
Creates a ZooKeeperIface instance
|
public DefaultZooKeeperFactory(String zkHostStr, int timeoutMillis, int maxRetries, int retryIntervalMillis)
public DefaultZooKeeperFactory(String zkHostStr, int timeoutMillis)
public ZooKeeperIface create(org.apache.zookeeper.Watcher watcher) throws IOException
ZooKeeperFactorycreate in interface ZooKeeperFactorywatcher - - Watcher to monitor changes in connection statusIOExceptionCopyright © 2012–2015 Facebook, Inc.. All rights reserved.