|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dontdrinkandroot.cache.expungestrategy.impl.ExpiredOnlyExpungeStrategy
public class ExpiredOnlyExpungeStrategy
ExpungeStrategy that selects only entries that are expired.
| Constructor Summary | |
|---|---|
ExpiredOnlyExpungeStrategy(long cleanUpInterval)
Creates a new ExpiredOnlyExpungeStrategy. |
|
| Method Summary | ||
|---|---|---|
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpiredOnlyExpungeStrategy(long cleanUpInterval)
ExpiredOnlyExpungeStrategy.
cleanUpInterval - How long to wait in milliseconds before the strategy is triggered again.| Method Detail |
|---|
public boolean triggers(CacheStatistics statistics)
ExpungeStrategy
triggers in interface ExpungeStrategypublic <K,M extends MetaData> Collection<Map.Entry<K,M>> getToExpungeMetaData(Set<Map.Entry<K,M>> entrySet)
ExpungeStrategy
getToExpungeMetaData in interface ExpungeStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||