@ThreadSafe public class NondeterministicLRUCacheEvictor extends LRUCacheEvictor
mLRUCache| Constructor and Description |
|---|
NondeterministicLRUCacheEvictor(CacheEvictorOptions options)
Consturctor.
|
| Modifier and Type | Method and Description |
|---|---|
PageId |
evict() |
PageId |
evictMatching(java.util.function.Predicate<PageId> criterion)
Picks the first candidate for eviction that satisfies the given criterion.
|
void |
setNumOfCandidate(int n) |
reset, updateOnDelete, updateOnGet, updateOnPutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic NondeterministicLRUCacheEvictor(CacheEvictorOptions options)
options - public void setNumOfCandidate(int n)
n - Number of eviction candidate to randomly select from@Nullable public PageId evict()
evict in interface CacheEvictorevict in class LRUCacheEvictor@Nullable public PageId evictMatching(java.util.function.Predicate<PageId> criterion)
CacheEvictorevictMatching in interface CacheEvictorevictMatching in class LRUCacheEvictorcriterion - criterionCopyright © 2022. All Rights Reserved.