org.ldaptive.pool
Interface PruneStrategy

All Known Implementing Classes:
IdlePruneStrategy

public interface PruneStrategy

Provides an interface for pruning connections from the pool.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Method Summary
 long getPrunePeriod()
          Returns the interval at which the prune task will be executed in seconds.
 int getStatisticsSize()
          Returns the number of statistics to store for this prune strategy.
 boolean prune(PooledConnectionProxy conn)
          Invoked to determine whether a connection should be pruned from the pool.
 

Method Detail

prune

boolean prune(PooledConnectionProxy conn)
Invoked to determine whether a connection should be pruned from the pool.

Parameters:
conn - that is available for pruning
Returns:
whether the connection should be pruned

getStatisticsSize

int getStatisticsSize()
Returns the number of statistics to store for this prune strategy. See PooledConnectionStatistics.

Returns:
number of statistics to store

getPrunePeriod

long getPrunePeriod()
Returns the interval at which the prune task will be executed in seconds.

Returns:
prune period in seconds


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.