|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
This interface defines the behavior of the class that will manage various pools and provide a single access point to the pools.
| Method Summary | |
void |
addConnectionLeakListener(java.lang.String poolName,
ConnectionLeakListener cle)
This method adds a connection leak listener.The methods of cle will be called when a leak is detected as per the
pool configuration. |
java.sql.Connection |
getConnection()
This method returns a Connection from the default connection pool. |
java.sql.Connection |
getConnection(java.lang.String poolName)
This method returns a Connection from the pool poolName. |
java.sql.Connection |
getConnection(java.lang.String poolName,
java.lang.String owner)
This method returns a Connection from the pool poolName. |
PoolMonitor |
getPoolMonitor(java.lang.String poolName)
This method returns the instance of PoolMonitor for the pool poolName |
void |
removeConnectionLeakListener(java.lang.String poolName,
ConnectionLeakListener cle)
This method removes a connection leak listener. cle will
not get any further notifications. |
| Method Detail |
public java.sql.Connection getConnection()
throws ConnectionPoolException
public java.sql.Connection getConnection(java.lang.String poolName)
throws ConnectionPoolException
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.poolName - Name of the pool.
public java.sql.Connection getConnection(java.lang.String poolName,
java.lang.String owner)
throws ConnectionPoolException
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.poolName - Name of the pool.owner - String identifying the owner.
public void addConnectionLeakListener(java.lang.String poolName,
ConnectionLeakListener cle)
throws ConnectionPoolException
cle will be called when a leak is detected as per the
pool configuration.poolName - Name of the pool.cle - Class implementing ConnectionLeakListener interface.
public void removeConnectionLeakListener(java.lang.String poolName,
ConnectionLeakListener cle)
throws ConnectionPoolException
cle will
not get any further notifications.poolName - Name of the pool.cle - Class implementing ConnectionLeakListener interface.
public PoolMonitor getPoolMonitor(java.lang.String poolName)
throws ConnectionPoolException
poolNamepoolName - Name of the pool.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||