public abstract class AbstractOneOverMaxSizeExpungeStrategy extends AbstractMaxSizeExpungeStrategy
AbstractMaxSizeExpungeStrategy that triggers if the cache size is larger than the max
size and selects the entries to evict by the given comparator.maxSize| Constructor and Description |
|---|
AbstractOneOverMaxSizeExpungeStrategy(int maxSize)
Constructs a new
AbstractOneOverMaxSizeExpungeStrategy with the given max size and
MetaDataComparator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
triggers(CacheStatistics statistics)
Checks if the strategy triggers based on the given statistics.
|
getComparator, getMaxSize, getToExpungeMetaData, setMaxSizepublic AbstractOneOverMaxSizeExpungeStrategy(int maxSize)
AbstractOneOverMaxSizeExpungeStrategy with the given max size and
MetaDataComparator.public boolean triggers(CacheStatistics statistics)
ExpungeStrategyCopyright © 2013 dontdrinkandroot. All Rights Reserved.