|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavacli.ConnectionPool
Perform connection pooling
Constructor Summary | |
ConnectionPool()
|
Method Summary | |
void |
close()
Physically close all opened connections |
Connection |
newConnection(java.lang.String hostAddress,
int hostPort)
Make new pooled connection. |
Connection |
newConnection(java.lang.String hostAddress,
int hostPort,
java.lang.String userName,
java.lang.String password)
Make new pooled connection. |
void |
releaseConnection(Connection conxn)
Return conection to the pool |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConnectionPool()
Method Detail |
public Connection newConnection(java.lang.String hostAddress, int hostPort)
hostAddress
- string with server host namehostPort
- integer number with server portpublic Connection newConnection(java.lang.String hostAddress, int hostPort, java.lang.String userName, java.lang.String password)
hostAddress
- string with server host namehostPort
- integer number with server portuserName
- user namepassword
- passwordpublic void releaseConnection(Connection conxn)
conxn
- released connectionpublic void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |