Package org.ldaptive.pool
Interface ConnectionPool
- 
- All Known Implementing Classes:
- AbstractConnectionPool,- BlockingConnectionPool,- PooledConnectionFactory
 
 public interface ConnectionPoolProvides an interface for connection pooling.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intactiveCount()Returns the number of connections in use.intavailableCount()Returns the number of connections available for use.voidclose()Empty this pool, freeing any resources.ConnectiongetConnection()Returns an object from the pool.Set<PooledConnectionStatistics>getPooledConnectionStatistics()Returns the statistics for each connection in the pool.voidinitialize()Initialize this pool for use.
 
- 
- 
- 
Method Detail- 
initializevoid initialize() Initialize this pool for use.
 - 
getConnectionConnection getConnection() throws PoolException Returns an object from the pool.- Returns:
- pooled object
- Throws:
- PoolException- if this operation fails
- BlockingTimeoutException- if this pool is configured with a block time and it occurs
 
 - 
availableCountint availableCount() Returns the number of connections available for use.- Returns:
- count
 
 - 
activeCountint activeCount() Returns the number of connections in use.- Returns:
- count
 
 - 
getPooledConnectionStatisticsSet<PooledConnectionStatistics> getPooledConnectionStatistics() Returns the statistics for each connection in the pool.- Returns:
- connection statistics
 
 - 
closevoid close() Empty this pool, freeing any resources.
 
- 
 
-