public class ManagedGenericKeyedObjectPool
extends org.apache.commons.pool.impl.GenericKeyedObjectPool<com.lexmark.saperion.remote.common.authentication.Credentials,com.saperion.connector.authentication.Session>
GenericKeyedObjectPool and registers an MBean with the name of the pool.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(org.apache.commons.pool.KeyedPoolableObjectFactory<com.lexmark.saperion.remote.common.authentication.Credentials,com.saperion.connector.authentication.Session> factory,
org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config,
String poolName)
Creates a new pool instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
addObject, borrowObject, clear, clear, clearOldest, 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 ManagedGenericKeyedObjectPool(org.apache.commons.pool.KeyedPoolableObjectFactory<com.lexmark.saperion.remote.common.authentication.Credentials,com.saperion.connector.authentication.Session> factory,
org.apache.commons.pool.impl.GenericKeyedObjectPool.Config config,
String poolName)
throws ManagementInitializationException
factory - the object factory used to create new objects for the poolconfig - the pool configurationpoolName - the name of the pool. Must be unique.ManagementInitializationException - when the management bean could not be registeredpublic void close()
throws Exception
close in interface org.apache.commons.pool.KeyedObjectPool<com.lexmark.saperion.remote.common.authentication.Credentials,com.saperion.connector.authentication.Session>close in class org.apache.commons.pool.impl.GenericKeyedObjectPool<com.lexmark.saperion.remote.common.authentication.Credentials,com.saperion.connector.authentication.Session>ExceptionCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.