public class ManagedGenericKeyedObjectPool<K,V> extends org.apache.commons.pool.impl.GenericKeyedObjectPool<K,V> implements ManagedGenericKeyedObjectPoolMBean<K,V>
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 |
|---|
ManagedGenericKeyedObjectPool() |
ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory) |
ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory,
org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config) |
ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory,
int maxActive) |
ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait) |
ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
boolean testOnBorrow,
boolean testOnReturn) |
ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle) |
ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn) |
ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle) |
ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int maxTotal,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle) |
ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int maxTotal,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle) |
ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory,
int maxActive,
byte whenExhaustedAction,
long maxWait,
int maxIdle,
int maxTotal,
int minIdle,
boolean testOnBorrow,
boolean testOnReturn,
long timeBetweenEvictionRunsMillis,
int numTestsPerEvictionRun,
long minEvictableIdleTimeMillis,
boolean testWhileIdle,
boolean lifo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getLifo() |
int |
getMaxActive() |
int |
getMaxIdle() |
int |
getMaxTotal() |
long |
getMaxWait() |
long |
getMinEvictableIdleTimeMillis() |
int |
getMinIdle() |
int |
getNumActive() |
int |
getNumIdle() |
int |
getNumTestsPerEvictionRun() |
boolean |
getTestOnBorrow() |
boolean |
getTestOnReturn() |
boolean |
getTestWhileIdle() |
long |
getTimeBetweenEvictionRunsMillis() |
addObject, borrowObject, clear, clear, clearOldest, close, evict, getNumActive, getNumIdle, getWhenExhaustedAction, invalidateObject, preparePool, returnObject, setConfig, setFactory, setLifo, setMaxActive, setMaxIdle, setMaxTotal, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setNumTestsPerEvictionRun, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setWhenExhaustedAction, startEvictorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, clearOldestpublic ManagedGenericKeyedObjectPool()
public ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory)
public ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory, org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config)
public ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory, int maxActive)
public ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory, int maxActive, byte whenExhaustedAction, long maxWait)
public ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory, int maxActive, byte whenExhaustedAction, long maxWait, boolean testOnBorrow, boolean testOnReturn)
public ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle)
public ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, boolean testOnBorrow, boolean testOnReturn)
public ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle)
public ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle)
public ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal, int minIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle)
public ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<K,V> factory, int maxActive, byte whenExhaustedAction, long maxWait, int maxIdle, int maxTotal, int minIdle, boolean testOnBorrow, boolean testOnReturn, long timeBetweenEvictionRunsMillis, int numTestsPerEvictionRun, long minEvictableIdleTimeMillis, boolean testWhileIdle, boolean lifo)
public int getNumIdle()
getNumIdle in interface org.apache.commons.pool.KeyedObjectPool<K,V>getNumIdle in interface ManagedGenericKeyedObjectPoolMBean<K,V>getNumIdle in class org.apache.commons.pool.impl.GenericKeyedObjectPool<K,V>public int getNumActive()
getNumActive in interface org.apache.commons.pool.KeyedObjectPool<K,V>getNumActive in interface ManagedGenericKeyedObjectPoolMBean<K,V>getNumActive in class org.apache.commons.pool.impl.GenericKeyedObjectPool<K,V>public boolean getLifo()
public boolean getTestWhileIdle()
getTestWhileIdle in interface ManagedGenericKeyedObjectPoolMBean<K,V>getTestWhileIdle in class org.apache.commons.pool.impl.GenericKeyedObjectPool<K,V>public long getMinEvictableIdleTimeMillis()
getMinEvictableIdleTimeMillis in interface ManagedGenericKeyedObjectPoolMBean<K,V>getMinEvictableIdleTimeMillis in class org.apache.commons.pool.impl.GenericKeyedObjectPool<K,V>public int getNumTestsPerEvictionRun()
getNumTestsPerEvictionRun in interface ManagedGenericKeyedObjectPoolMBean<K,V>getNumTestsPerEvictionRun in class org.apache.commons.pool.impl.GenericKeyedObjectPool<K,V>public long getTimeBetweenEvictionRunsMillis()
getTimeBetweenEvictionRunsMillis in interface ManagedGenericKeyedObjectPoolMBean<K,V>getTimeBetweenEvictionRunsMillis in class org.apache.commons.pool.impl.GenericKeyedObjectPool<K,V>public boolean getTestOnReturn()
public boolean getTestOnBorrow()
getTestOnBorrow in interface ManagedGenericKeyedObjectPoolMBean<K,V>getTestOnBorrow in class org.apache.commons.pool.impl.GenericKeyedObjectPool<K,V>public int getMinIdle()
getMinIdle in interface ManagedGenericKeyedObjectPoolMBean<K,V>getMinIdle in class org.apache.commons.pool.impl.GenericKeyedObjectPool<K,V>public int getMaxIdle()
getMaxIdle in interface ManagedGenericKeyedObjectPoolMBean<K,V>getMaxIdle in class org.apache.commons.pool.impl.GenericKeyedObjectPool<K,V>public long getMaxWait()
getMaxWait in interface ManagedGenericKeyedObjectPoolMBean<K,V>getMaxWait in class org.apache.commons.pool.impl.GenericKeyedObjectPool<K,V>public int getMaxTotal()
getMaxTotal in interface ManagedGenericKeyedObjectPoolMBean<K,V>getMaxTotal in class org.apache.commons.pool.impl.GenericKeyedObjectPool<K,V>public int getMaxActive()
getMaxActive in interface ManagedGenericKeyedObjectPoolMBean<K,V>getMaxActive in class org.apache.commons.pool.impl.GenericKeyedObjectPool<K,V>Copyright © 2015. All Rights Reserved.