Class PageAbstractEvictionTracker
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.evict.PageAbstractEvictionTracker
-
- All Implemented Interfaces:
PageEvictionTracker,LifecycleAware
- Direct Known Subclasses:
FairFifoPageEvictionTracker,Random2LruPageEvictionTracker,RandomLruPageEvictionTracker
public abstract class PageAbstractEvictionTracker extends Object implements PageEvictionTracker
-
-
Field Summary
Fields Modifier and Type Field Description protected PageMemoryNoStoreImplpageMemPage memory.protected inttrackingSizeTracking array size.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleancheckTouch(long pageId)booleanevictionRequired()Check if page eviction is required according to the configured policy.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.lifecycle.LifecycleAware
start, stop
-
Methods inherited from interface org.apache.ignite.internal.processors.cache.persistence.evict.PageEvictionTracker
evictDataPage, forgetPage, touchPage
-
-
-
-
Field Detail
-
pageMem
protected final PageMemoryNoStoreImpl pageMem
Page memory.
-
trackingSize
protected final int trackingSize
Tracking array size.
-
-
Method Detail
-
evictionRequired
public boolean evictionRequired()
Check if page eviction is required according to the configured policy.- Specified by:
evictionRequiredin interfacePageEvictionTracker- Returns:
Trueif eviction required.
-
checkTouch
protected abstract boolean checkTouch(long pageId)
- Parameters:
pageId- Page ID.- Returns:
- true if page was touched at least once.
-
-