public class ListBasedObjectPool extends org.apache.commons.pool.impl.GenericKeyedObjectPool<PoolObjectKey,java.lang.Object>
DEFAULT_LIFO, DEFAULT_MAX_ACTIVE, DEFAULT_MAX_IDLE, DEFAULT_MAX_TOTAL, DEFAULT_MAX_WAIT, DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_MIN_IDLE, DEFAULT_NUM_TESTS_PER_EVICTION_RUN, DEFAULT_TEST_ON_BORROW, DEFAULT_TEST_ON_RETURN, DEFAULT_TEST_WHILE_IDLE, DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS, DEFAULT_WHEN_EXHAUSTED_ACTION, WHEN_EXHAUSTED_BLOCK, WHEN_EXHAUSTED_FAIL, WHEN_EXHAUSTED_GROW| Constructor and Description |
|---|
ListBasedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<PoolObjectKey,java.lang.Object> factory,
java.lang.String poolId) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
borrowObject(PoolObjectKey key) |
java.lang.String |
getPoolId() |
addObject, clear, clear, clearOldest, close, evict, getLifo, getMaxActive, getMaxIdle, getMaxTotal, getMaxWait, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumActive, getNumIdle, getNumIdle, getNumTestsPerEvictionRun, getTestOnBorrow, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getWhenExhaustedAction, invalidateObject, preparePool, returnObject, setConfig, setFactory, setLifo, setMaxActive, setMaxIdle, setMaxTotal, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setNumTestsPerEvictionRun, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setWhenExhaustedActionpublic ListBasedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<PoolObjectKey,java.lang.Object> factory, java.lang.String poolId)
public java.lang.Object borrowObject(PoolObjectKey key) throws java.lang.Exception
borrowObject in interface org.apache.commons.pool.KeyedObjectPool<PoolObjectKey,java.lang.Object>borrowObject in class org.apache.commons.pool.impl.GenericKeyedObjectPool<PoolObjectKey,java.lang.Object>java.lang.Exceptionpublic java.lang.String getPoolId()