Package org.ldaptive.pool
Interface PruneStrategy
-
- All Superinterfaces:
Function<PooledConnectionProxy,Boolean>
- All Known Implementing Classes:
AbstractPruneStrategy
,IdlePruneStrategy
public interface PruneStrategy extends Function<PooledConnectionProxy,Boolean>
Provides an interface for pruning connections from the pool.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Duration
getPrunePeriod()
Returns the interval at which the prune task will be executed.int
getStatisticsSize()
Returns the number of statistics to store for this prune strategy.
-
-
-
Method Detail
-
getStatisticsSize
int getStatisticsSize()
Returns the number of statistics to store for this prune strategy. SeePooledConnectionStatistics
.- Returns:
- number of statistics to store
-
getPrunePeriod
Duration getPrunePeriod()
Returns the interval at which the prune task will be executed.- Returns:
- prune period
-
-