public interface PruneStrategy
Modifier and Type | Method and Description |
---|---|
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.
|
boolean prune(PooledConnectionProxy conn)
conn
- that is available for pruningint getStatisticsSize()
PooledConnectionStatistics
.long getPrunePeriod()
Copyright © 2024. All rights reserved.