public class SegmentedLruPageList extends Object
PageReplacementMode.SEGMENTED_LRU| Constructor and Description |
|---|
SegmentedLruPageList(int totalPagesCnt,
long memPtr) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToTail(int pageIdx,
boolean protectedPage)
Add page to the tail of protected or probationary LRU list.
|
void |
moveToTail(int pageIdx)
Move page to the tail of protected LRU list.
|
int |
poll()
Remove page from the head of LRU list.
|
void |
remove(int pageIdx)
Remove page from LRU list by page index.
|
static long |
requiredMemory(int pagesCnt)
Memory required to service
pagesCnt pages. |
public SegmentedLruPageList(int totalPagesCnt,
long memPtr)
totalPagesCnt - Total pages count.memPtr - Pointer to memory region.public int poll()
-1 if list is empty.public void remove(int pageIdx)
pageIdx - Page index.public void addToTail(int pageIdx,
boolean protectedPage)
pageIdx - Page index.protectedPage - Protected page flag.public void moveToTail(int pageIdx)
pageIdx - Page index.public static long requiredMemory(int pagesCnt)
pagesCnt pages.pagesCnt - Pages count.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021