public class ExpiredOnlyExpungeStrategy extends Object implements ExpungeStrategy
| Constructor and Description |
|---|
ExpiredOnlyExpungeStrategy(long cleanUpInterval)
Creates a new
ExpiredOnlyExpungeStrategy. |
| Modifier and Type | Method and Description |
|---|---|
<K,M extends MetaData> |
getToExpungeMetaData(Set<Map.Entry<K,M>> entrySet)
Returns a collection of entries that should be expunged according to this strategy.
|
boolean |
triggers(CacheStatistics statistics)
Checks if the strategy triggers based on the given statistics.
|
public ExpiredOnlyExpungeStrategy(long cleanUpInterval)
ExpiredOnlyExpungeStrategy.cleanUpInterval - How long to wait in milliseconds before the strategy is triggered again.public boolean triggers(CacheStatistics statistics)
ExpungeStrategytriggers in interface ExpungeStrategypublic <K,M extends MetaData> Collection<Map.Entry<K,M>> getToExpungeMetaData(Set<Map.Entry<K,M>> entrySet)
ExpungeStrategygetToExpungeMetaData in interface ExpungeStrategyCopyright © 2012. All Rights Reserved.