|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.apache.commons.pool.BaseObjectPool
|
+--org.apache.commons.pool.impl.GenericObjectPool
|
+--org.apache.commons.dbcp.AbandonedObjectPool
An implementation of a Jakarta-Commons ObjectPool which tracks JDBC connections and can recover abandoned db connections. If logAbandoned=true, a stack trace will be printed for any abandoned db connections recovered.
| Field Summary |
| Constructor Summary | |
AbandonedObjectPool(PoolableObjectFactory factory,
org.apache.commons.dbcp.AbandonedConfig config)
Deprecated. Create an ObjectPool which tracks db connections. |
|
| Method Summary | |
Object |
borrowObject()
Deprecated. Get a db connection from the pool. |
void |
invalidateObject(Object obj)
Deprecated. |
void |
returnObject(Object obj)
Deprecated. Return a db connection to the pool. |
| Methods inherited from class org.apache.commons.pool.BaseObjectPool |
assertOpen, isClosed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbandonedObjectPool(PoolableObjectFactory factory,
org.apache.commons.dbcp.AbandonedConfig config)
| Method Detail |
public Object borrowObject()
throws Exception
borrowObject in interface ObjectPoolborrowObject in class GenericObjectPoolException
public void returnObject(Object obj)
throws Exception
returnObject in interface ObjectPoolreturnObject in class GenericObjectPoolException
public void invalidateObject(Object obj)
throws Exception
invalidateObject in interface ObjectPoolinvalidateObject in class GenericObjectPoolException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||