|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGenericObjectPool
org.apache.commons.dbcp.AbandonedObjectPool
public class 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.
Constructor Summary | |
---|---|
AbandonedObjectPool(PoolableObjectFactory factory,
AbandonedConfig config)
Create an ObjectPool which tracks db connections. |
Method Summary | |
---|---|
java.lang.Object |
borrowObject()
Get a db connection from the pool. |
void |
invalidateObject(java.lang.Object obj)
Invalidates an object from the pool. |
void |
returnObject(java.lang.Object obj)
Return a db connection to the pool. |
Methods inherited from class java.lang.Object |
---|
equals, 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 java.lang.Object borrowObject() throws java.lang.Exception
java.lang.Exception
- if an exception occurs retrieving a
connection from the poolpublic void invalidateObject(java.lang.Object obj) throws java.lang.Exception
obj
- object to be returned
java.lang.Exception
- if an exception occurs invalidating the objectpublic void returnObject(java.lang.Object obj) throws java.lang.Exception
obj
- db Connection to return
java.lang.Exception
- if an exception occurs returning the connection
to the pool
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |