public class UnboundLdapConnectionPool
extends org.apache.commons.pool2.impl.GenericObjectPool<org.apache.directory.ldap.client.api.LdapConnection>
This class is just a wrapper around the commons GenericObjectPool, and has a more meaningful name to represent the pool type.
Constructor and Description |
---|
UnboundLdapConnectionPool(PoolableUnboundConnectionFactory factory)
Instantiates a new LDAP connection pool.
|
Modifier and Type | Method and Description |
---|---|
org.apache.directory.ldap.client.api.LdapConnection |
getConnection()
Gives a Unbound LdapConnection fetched from the pool.
|
void |
releaseConnection(org.apache.directory.ldap.client.api.LdapConnection connection)
Places the given LdapConnection back in the pool.
|
addObject, borrowObject, borrowObject, clear, close, evict, getFactory, getFactoryType, getLogAbandoned, getMaxIdle, getMinIdle, getNumActive, getNumIdle, getNumWaiters, getRemoveAbandonedOnBorrow, getRemoveAbandonedOnMaintenance, getRemoveAbandonedTimeout, invalidateObject, isAbandonedConfig, listAllObjects, preparePool, returnObject, setAbandonedConfig, setConfig, setMaxIdle, setMinIdle, toStringAppendFields, use
getBlockWhenExhausted, getBorrowedCount, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getEvictionPolicy, getEvictionPolicyClassName, getEvictorShutdownTimeoutMillis, getFairness, getJmxName, getLifo, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitMillis, getMeanActiveTimeMillis, getMeanBorrowWaitTimeMillis, getMeanIdleTimeMillis, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getReturnedCount, getSoftMinEvictableIdleTimeMillis, getSwallowedExceptionListener, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, isClosed, markReturningState, setBlockWhenExhausted, setConfig, setEvictionPolicy, setEvictionPolicyClassName, setEvictionPolicyClassName, setEvictorShutdownTimeoutMillis, setLifo, setMaxTotal, setMaxWaitMillis, setMinEvictableIdleTimeMillis, setNumTestsPerEvictionRun, setSoftMinEvictableIdleTimeMillis, setSwallowedExceptionListener, setTestOnBorrow, setTestOnCreate, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBlockWhenExhausted, getBorrowedCount, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getFairness, getLifo, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitMillis, getMeanActiveTimeMillis, getMeanBorrowWaitTimeMillis, getMeanIdleTimeMillis, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getReturnedCount, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, isClosed
public UnboundLdapConnectionPool(PoolableUnboundConnectionFactory factory)
factory
- the LDAP connection factorypublic org.apache.directory.ldap.client.api.LdapConnection getConnection() throws java.lang.Exception
java.lang.Exception
- if an error occurs while obtaining a connection from the factorypublic void releaseConnection(org.apache.directory.ldap.client.api.LdapConnection connection) throws java.lang.Exception
connection
- the LdapConnection to be releasedjava.lang.Exception
- if an error occurs while releasing the connectionCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.