|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionPool
Interface for an ObjectPool of java.sql.Connection Objects
Connection| Method Summary | |
|---|---|
void |
close()
Close the ConnectionPool |
void |
destroy()
Destroy the ConnectionPool |
ConnectionPoolAuthenticator |
getAuthenticator()
Get the ConnectionPool's ConnectionPoolAuthenticator |
Connection |
getConnection()
Get a Connection from the Pool |
ConnectionPoolInfo |
getInfo()
Get information about the ConnectionPool Object |
void |
refreshConnections()
Refresh all inactive Connections in the ConnectionPool |
void |
returnConnection(Connection c)
Return a Connection to the Pool |
void |
setAuthenticator(ConnectionPoolAuthenticator authenticator)
Set the ConnectionPoolAuthenticator for this ConnectionPool |
void |
shrinkConnections()
Shrink inactive Connections This method will destroy any inactive Connection that is above the ConnectionPool's minimum number of connection value |
| Methods inherited from interface com.cafesoft.core.util.Debuggable |
|---|
setDebug |
| Methods inherited from interface com.cafesoft.core.log.LoggerClient |
|---|
setLogger |
| Method Detail |
|---|
ConnectionPoolInfo getInfo()
void setAuthenticator(ConnectionPoolAuthenticator authenticator)
authenticator - the new ConnectionPoolAuthenticatorConnectionPoolAuthenticator getAuthenticator()
Connection getConnection()
throws ConnectionPoolException
ConnectionPoolException - thrown if the ConnectionPool is at it's maximum or
if the pool has closedvoid returnConnection(Connection c)
c - the Connection to return, if c is null the method
simply returns
void refreshConnections()
throws ConnectionPoolException
ConnectionPoolException - thrown if an error occurs refreshing the Connections
void shrinkConnections()
throws ConnectionPoolException
This method will destroy any inactive Connection that is above the ConnectionPool's minimum number of connection value
ConnectionPoolException - thrown if an error occurs shrinking the Connectionsvoid close()
void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||