|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.connection.DefaultConnectionPoolImpl
public class DefaultConnectionPoolImpl
Default connection pool implementation class when none is specified by the user in @link ConnectionProperties
| Constructor Summary | |
|---|---|
DefaultConnectionPoolImpl()
|
|
| Method Summary | |
|---|---|
void |
closeConnection(java.sql.Connection connectionToClose)
This method closes an open connection and returns the connection to the pool. |
void |
createPool(ConnectionProperties prop)
This method is used to create the connection pool and keep it ready |
protected void |
finalize()
|
java.sql.Connection |
getConnection()
This method is called whenever a connection is needed from the pool. |
protected void |
releaseAbandonedConnections()
This method will release all abandoned connections from the pool. |
void |
releasePool()
This method is called when the pool needs to be destroyed effectively closing all open connections |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultConnectionPoolImpl()
| Method Detail |
|---|
public void createPool(ConnectionProperties prop)
throws ConnectionException
ConnectionPool
createPool in interface ConnectionPoolprop - Properties for the connection pool including connection properties
ConnectionExceptionConnectionPool.createPool(ConnectionProperties)
public java.sql.Connection getConnection()
throws java.sql.SQLException
ConnectionPool
getConnection in interface ConnectionPooljava.sql.SQLExceptionConnectionPool.getConnection()public void closeConnection(java.sql.Connection connectionToClose)
ConnectionPool
closeConnection in interface ConnectionPoolconnectionToClose - The connection to be returned to the pool.ConnectionPool;public void releasePool()
ConnectionPool
releasePool in interface ConnectionPoolConnectionPool.releasePool()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwableprotected void releaseAbandonedConnections()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||