public class LdapConnectionPool
extends org.apache.commons.pool.impl.GenericObjectPool
DEFAULT_LIFO, DEFAULT_MAX_ACTIVE, DEFAULT_MAX_IDLE, DEFAULT_MAX_WAIT, DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_MIN_IDLE, DEFAULT_NUM_TESTS_PER_EVICTION_RUN, DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS, 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 |
---|
LdapConnectionPool() |
LdapConnectionPool(PoolableLdapConnectionFactory factory) |
Modifier and Type | Method and Description |
---|---|
LdapConnection |
getConnection()
gives a LdapConnection fetched from the pool
|
void |
releaseConnection(LdapConnection connection)
places the given LdapConnection back in the pool
|
void |
setFactory(PoolableLdapConnectionFactory factory) |
addObject, borrowObject, clear, close, evict, getLifo, getMaxActive, getMaxIdle, getMaxWait, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumTestsPerEvictionRun, getSoftMinEvictableIdleTimeMillis, getTestOnBorrow, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getWhenExhaustedAction, invalidateObject, returnObject, setConfig, setFactory, setLifo, setMaxActive, setMaxIdle, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setNumTestsPerEvictionRun, setSoftMinEvictableIdleTimeMillis, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setWhenExhaustedAction, startEvictor
public LdapConnectionPool()
public LdapConnectionPool(PoolableLdapConnectionFactory factory)
public void setFactory(PoolableLdapConnectionFactory factory)
public LdapConnection getConnection() throws Exception
Exception
public void releaseConnection(LdapConnection connection) throws Exception
connection
- the LdapConnection to be releasedException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.