Save This Page
Home » commons-dbcp-1.2.2-src » org.apache.commons » dbcp » [javadoc | source]
org.apache.commons.dbcp
public class: AbandonedObjectPool [javadoc | source]
java.lang.Object
   org.apache.commons.pool.BaseObjectPool
      org.apache.commons.pool.impl.GenericObjectPool
         org.apache.commons.dbcp.AbandonedObjectPool

All Implemented Interfaces:
    ObjectPool

Deprecated! This - will be removed in a future version of DBCP.

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.

Fields inherited from org.apache.commons.pool.impl.GenericObjectPool:
WHEN_EXHAUSTED_FAIL,  WHEN_EXHAUSTED_BLOCK,  WHEN_EXHAUSTED_GROW,  DEFAULT_MAX_IDLE,  DEFAULT_MIN_IDLE,  DEFAULT_MAX_ACTIVE,  DEFAULT_WHEN_EXHAUSTED_ACTION,  DEFAULT_MAX_WAIT,  DEFAULT_TEST_ON_BORROW,  DEFAULT_TEST_ON_RETURN,  DEFAULT_TEST_WHILE_IDLE,  DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS,  DEFAULT_NUM_TESTS_PER_EVICTION_RUN,  DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS,  DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS
Constructor:
 public AbandonedObjectPool(PoolableObjectFactory factory,
    AbandonedConfig config) 
    Create an ObjectPool which tracks db connections.
    Parameters:
    factory - PoolableObjectFactory used to create this
    config - configuration for abandoned db connections
Method from org.apache.commons.dbcp.AbandonedObjectPool Summary:
borrowObject,   invalidateObject,   returnObject
Methods from org.apache.commons.pool.impl.GenericObjectPool:
addObject,   borrowObject,   clear,   close,   evict,   getMaxActive,   getMaxIdle,   getMaxWait,   getMinEvictableIdleTimeMillis,   getMinIdle,   getNumActive,   getNumIdle,   getNumTestsPerEvictionRun,   getSoftMinEvictableIdleTimeMillis,   getTestOnBorrow,   getTestOnReturn,   getTestWhileIdle,   getTimeBetweenEvictionRunsMillis,   getWhenExhaustedAction,   invalidateObject,   returnObject,   setConfig,   setFactory,   setMaxActive,   setMaxIdle,   setMaxWait,   setMinEvictableIdleTimeMillis,   setMinIdle,   setNumTestsPerEvictionRun,   setSoftMinEvictableIdleTimeMillis,   setTestOnBorrow,   setTestOnReturn,   setTestWhileIdle,   setTimeBetweenEvictionRunsMillis,   setWhenExhaustedAction
Methods from org.apache.commons.pool.BaseObjectPool:
addObject,   borrowObject,   clear,   close,   getNumActive,   getNumIdle,   invalidateObject,   returnObject,   setFactory
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.dbcp.AbandonedObjectPool Detail:
 public Object borrowObject() throws Exception 
      Deprecated!
    Get a db connection from the pool. If removeAbandoned=true, recovers db connections which have been idle > removeAbandonedTimeout and getNumActive() > getMaxActive() - 3 and getNumIdle() < 2
 public  void invalidateObject(Object obj) throws Exception 
      Deprecated!
    Invalidates an object from the pool.
 public  void returnObject(Object obj) throws Exception 
      Deprecated!
    Return a db connection to the pool.