| |
|
| org.smartlib.pool.core.PoolManager
All known Subclasses: org.smartlib.pool.core.PoolManagerImpl,
PoolManager | public interface PoolManager (Code) | | This interface defines the behavior of the class that will manage
various pools and provide a single access point to the pools.
author: Sachin Shekar Shetty version: 1.0, 02/08/01 |
addConnectionLeakListener | public void addConnectionLeakListener(String poolName, ConnectionLeakListener cle) throws ConnectionPoolException(Code) | | This method adds a connection leak listener.The methods of
cle will be called when a leak is detected as per the
pool configuration.
Parameters: poolName - Name of the pool. Parameters: cle - Class implementing ConnectionLeakListener interface. exception: ConnectionPoolException - If there is any problem adding ConnectionLeakListener. |
getConnection | public Connection getConnection() throws ConnectionPoolException(Code) | | This method returns a Connection from the default connection pool.
The owner of this pool is marked as N/A indicating unknown.
Note: This method blocks if the pool size has reached it's
maximum size and no free connections are available
until a free connection is available. The time period for which this
method blocks depends on the connection-wait-time-out specified in
the configuration file.
Connection from the default pool exception: ConnectionPoolException - if there is any problem getting connection. |
getConnection | public Connection getConnection(String poolName) throws ConnectionPoolException(Code) | | This method returns a Connection from the pool poolName .
The owner of this pool is marked as N/A indicating unknown.
Note: This method blocks if the pool size has reached it's
maximum size and no free connections are available
until a free connection is available. The time period for which this
method blocks depends on the connection-wait-time-out specified in
the configuration file.
Parameters: poolName - Name of the pool. Connection from the pool exception: ConnectionPoolException - if there is any problem getting connection. |
getConnection | public Connection getConnection(String poolName, String owner) throws ConnectionPoolException(Code) | | This method returns a Connection from the pool poolName .
The owner of this connection is identified by owner .
Note: This method blocks if the pool size has reached it's
maximum size and no free connections are available
until a free connection is available. The time period for which this
method blocks depends on the connection-wait-time-out specified in
the configuration file.
Parameters: poolName - Name of the pool. Parameters: owner - String identifying the owner. Connection from the pool exception: ConnectionPoolException - if there is any problem getting connection. |
removeConnectionLeakListener | public void removeConnectionLeakListener(String poolName, ConnectionLeakListener cle) throws ConnectionPoolException(Code) | | This method removes a connection leak listener.cle will
not get any further notifications.
Parameters: poolName - Name of the pool. Parameters: cle - Class implementing ConnectionLeakListener interface. exception: ConnectionPoolException - If there is any problem removing ConnectionLeakListener. |
shutDown | public void shutDown()(Code) | | This method shutsdown all the pools
|
|
|
|