public class ZooKeeperConnectionPool extends Object
Modifier and Type | Field and Description |
---|---|
static String |
_rcsid |
protected String |
connectString |
protected List<ZooKeeperConnection> |
openConnectionList |
protected int |
sessionTimeout |
Constructor and Description |
---|
ZooKeeperConnectionPool(String connectString,
int sessionTimeout) |
public static final String _rcsid
protected final String connectString
protected final int sessionTimeout
protected final List<ZooKeeperConnection> openConnectionList
public ZooKeeperConnectionPool(String connectString, int sessionTimeout)
public ZooKeeperConnection grab() throws ManifoldCFException, InterruptedException
public void release(ZooKeeperConnection connection)
public void closeAll() throws InterruptedException
InterruptedException