@ThreadSafe public interface CacheEvictor
Modifier and Type | Method and Description |
---|---|
static CacheEvictor |
create(CacheEvictorOptions options) |
PageId |
evict() |
PageId |
evictMatching(java.util.function.Predicate<PageId> criterion)
Picks the first candidate for eviction that satisfies the given criterion.
|
void |
reset()
Resets the evictor.
|
void |
updateOnDelete(PageId pageId)
Updates evictor after a delete operation.
|
void |
updateOnGet(PageId pageId)
Updates evictor after a get operation.
|
void |
updateOnPut(PageId pageId)
Updates evictor after a put operation.
|
static CacheEvictor create(CacheEvictorOptions options)
options
- cache evictor optionsvoid updateOnGet(PageId pageId)
pageId
- page identifiervoid updateOnPut(PageId pageId)
pageId
- page identifiervoid updateOnDelete(PageId pageId)
pageId
- page identifier@Nullable PageId evictMatching(java.util.function.Predicate<PageId> criterion)
criterion
- criterionvoid reset()
Copyright © 2023. All Rights Reserved.