public class BasicZooKeeperFactory extends Object implements ZooKeeperFactory
| Constructor and Description |
|---|
BasicZooKeeperFactory(String hosts,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
ZooKeeperIface |
create(org.apache.zookeeper.Watcher watcher)
Creates a ZooKeeperIface instance
|
public BasicZooKeeperFactory(String hosts, int timeout)
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.