org.apache.commons.dbcp
Class AbandonedObjectPool
GenericObjectPool
org.apache.commons.dbcp.AbandonedObjectPool
public class AbandonedObjectPool
extends GenericObjectPool
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.
$Revision: 1.16 $ $Date: 2004/05/01 12:42:19 $
AbandonedObjectPool
public AbandonedObjectPool(PoolableObjectFactory factory,
AbandonedConfig config)
Create an ObjectPool which tracks db connections.
borrowObject
public Object borrowObject()
throws Exception
Get a db connection from the pool.
If removeAbandoned=true, recovers db connections which
have been idle > removeAbandonedTimeout.
invalidateObject
public void invalidateObject(Object obj)
throws Exception
returnObject
public void returnObject(Object obj)
throws Exception
Return a db connection to the pool.
Copyright © 2001-2003 Apache Software Foundation. Documenation generated October 24 2007.