|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.apache.commons.pool.BaseObjectPool
org.apache.commons.pool.impl.GenericObjectPool
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.commons.pool.impl.GenericObjectPool |
|---|
GenericObjectPool.Config |
| Field Summary |
|---|
| 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 connections| Method Detail |
|---|
public java.lang.Object borrowObject()
throws java.lang.Exception
borrowObject in interface ObjectPoolborrowObject in class GenericObjectPooljava.lang.Exception - if an exception occurs retrieving a
connection from the pool
public void invalidateObject(java.lang.Object obj)
throws java.lang.Exception
invalidateObject in interface ObjectPoolinvalidateObject in class GenericObjectPoolobj - object to be returned
java.lang.Exception - if an exception occurs invalidating the object
public void returnObject(java.lang.Object obj)
throws java.lang.Exception
returnObject in interface ObjectPoolreturnObject in class GenericObjectPoolobj - 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 | |||||