@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, updateOnPut
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public 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 CacheEvictor
evict
in class LRUCacheEvictor
@Nullable public PageId evictMatching(java.util.function.Predicate<PageId> criterion)
CacheEvictor
evictMatching
in interface CacheEvictor
evictMatching
in class LRUCacheEvictor
criterion
- criterionCopyright © 2023. All Rights Reserved.