|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 |
public ConnectionPoolInfo getInfo()
public void setAuthenticator(ConnectionPoolAuthenticator authenticator)
authenticator - the new ConnectionPoolAuthenticatorpublic ConnectionPoolAuthenticator getAuthenticator()
public Connection getConnection()
throws ConnectionPoolException
ConnectionPoolException - thrown if the ConnectionPool is at it's maximum or
if the pool has closedpublic void returnConnection(Connection c)
c - the Connection to return, if c is null the method
simply returns
public void refreshConnections()
throws ConnectionPoolException
ConnectionPoolException - thrown if an error occurs refreshing the Connections
public 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 Connectionspublic void close()
public void destroy()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||