public class ConnectionPool extends Object
| Constructor and Description |
|---|
ConnectionPool() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnection(Connection connection) |
boolean |
addHostPort(String hostName,
int port) |
void |
checkDeadConnections() |
void |
cleanup() |
Connection |
getConnection() |
List<Connection> |
getGoodConnectionList() |
public void addConnection(Connection connection)
public boolean addHostPort(String hostName, int port)
public void checkDeadConnections()
public Connection getConnection() throws NoServersAvailableException
NoServersAvailableExceptionpublic void cleanup()
public List<Connection> getGoodConnectionList()
Copyright © 2013. All Rights Reserved.