public class ZooReaderWriterFactory extends Object
ZooReaderWriter
objects.Constructor and Description |
---|
ZooReaderWriterFactory() |
Modifier and Type | Method and Description |
---|---|
IZooReaderWriter |
getInstance()
Gets a reader/writer, retrieving ZooKeeper information from the site configuration.
|
IZooReaderWriter |
getZooReaderWriter(String string,
int timeInMillis,
String secret)
Gets a new reader/writer.
|
public IZooReaderWriter getZooReaderWriter(String string, int timeInMillis, String secret)
string
- ZooKeeper connection stringtimeInMillis
- session timeout in millisecondssecret
- instance secretpublic IZooReaderWriter getInstance()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.