|
|||||||||||
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.
Nested Class Summary |
Nested classes inherited from class org.apache.commons.pool.impl.GenericObjectPool |
GenericObjectPool.Config |
Field Summary |
Constructor Summary | |
AbandonedObjectPool(PoolableObjectFactory factory,
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. Invalidates an object from the pool. |
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, AbandonedConfig config)
factory
- PoolableObjectFactory used to create thisconfig
- configuration for abandoned db connectionsMethod Detail |
public Object borrowObject() throws Exception
Exception
- if an exception occurs retrieving a
connection from the poolpublic void returnObject(Object obj) throws Exception
obj
- db Connection to return
Exception
- if an exception occurs returning the connection
to the poolpublic void invalidateObject(Object obj) throws Exception
obj
- object to be returned
Exception
- if an exception occurs invalidating the object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |