K - Key typeV - Pooled object typepublic class CTConnectionPool extends org.apache.commons.pool.impl.GenericKeyedObjectPool<String,CTConnection>
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 |
|---|
CTConnectionPool(org.apache.commons.pool.KeyedPoolableObjectFactory<String,CTConnection> factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
returnObjectUnsafe(String keyspace,
CTConnection conn)
If
conn is non-null and is still open, then call
{@link GenericKeyedObjectPool#returnObject(String, CTConnection),
catching and logging and Exception that method might generate. |
addObject, borrowObject, 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, setWhenExhaustedAction, startEvictorpublic CTConnectionPool(org.apache.commons.pool.KeyedPoolableObjectFactory<String,CTConnection> factory)
public void returnObjectUnsafe(String keyspace, CTConnection conn)
conn is non-null and is still open, then call
{@link GenericKeyedObjectPool#returnObject(String, CTConnection),
catching and logging and Exception that method might generate.
This method does not emit any exceptions.keyspace - The key of the pooled object being returnedconn - The pooled object being returned, or null to do nothingCopyright © 2012–2016. All rights reserved.