Interface PooledConnectionManager
- All Known Implementing Classes:
CPDSConnectionFactory
,KeyedCPDSConnectionFactory
interface PooledConnectionManager
Methods to manage PoolableConnections and the connection pools that source them.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Closes the connection pool associated with the given user.void
Closes the PooledConnection and remove it from the connection pool to which it belongs, adjusting pool counters.void
setPassword
(String password) Sets the database password used when creating connections.
-
Method Details
-
invalidate
Closes the PooledConnection and remove it from the connection pool to which it belongs, adjusting pool counters.- Parameters:
pc
- PooledConnection to be invalidated- Throws:
SQLException
- if an SQL error occurs closing the connection
-
setPassword
Sets the database password used when creating connections.- Parameters:
password
- password used when authenticating to the database
-
closePool
Closes the connection pool associated with the given user.- Parameters:
userName
- user name- Throws:
SQLException
- if an error occurs closing idle connections in the pool
-