Interface PruneStrategy

  • All Superinterfaces:
    java.util.function.Function<PooledConnectionProxy,​java.lang.Boolean>
    All Known Implementing Classes:
    IdlePruneStrategy

    public interface PruneStrategy
    extends java.util.function.Function<PooledConnectionProxy,​java.lang.Boolean>
    Provides an interface for pruning connections from the pool.
    Author:
    Middleware Services
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.time.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.
      • Methods inherited from interface java.util.function.Function

        andThen, apply, compose
    • Method Detail

      • getStatisticsSize

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

        java.time.Duration getPrunePeriod()
        Returns the interval at which the prune task will be executed.
        Returns:
        prune period