public class GridCacheEvictionManager extends GridCacheManagerAdapter implements CacheEvictionManager
cctx, log, starting| Constructor and Description |
|---|
GridCacheEvictionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
batchEvict(Collection<?> keys,
GridCacheVersion obsoleteVer) |
boolean |
evict(GridCacheEntryEx entry,
GridCacheVersion obsoleteVer,
boolean explicit,
CacheEntryPredicate[] filter) |
EvictionPolicy |
getEvictionPolicy()
For test purposes.
|
protected void |
onKernalStop0(boolean cancel) |
void |
printMemoryStats()
Prints memory statistics (sizes of internal data structures, etc.).
|
void |
start0() |
void |
touch(GridCacheEntryEx e,
AffinityTopologyVersion topVer) |
void |
touch(IgniteTxEntry txEntry,
boolean loc) |
context, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStart0, onKernalStop, start, startInfo, stop, stop0, stopInfo, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonDisconnected, onKernalStart, onKernalStop, start, stoppublic void start0()
throws IgniteCheckedException
start0 in class GridCacheManagerAdapterIgniteCheckedException - If failed.protected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridCacheManagerAdaptercancel - Cancel flag.public void touch(IgniteTxEntry txEntry, boolean loc)
touch in interface CacheEvictionManagertxEntry - Transactional entry.loc - Local transaction flag.public void touch(GridCacheEntryEx e, AffinityTopologyVersion topVer)
touch in interface CacheEvictionManagere - Entry for eviction policy notification.topVer - Topology version.public boolean evict(@Nullable
GridCacheEntryEx entry,
@Nullable
GridCacheVersion obsoleteVer,
boolean explicit,
@Nullable
CacheEntryPredicate[] filter)
throws IgniteCheckedException
evict in interface CacheEvictionManagerentry - Entry to attempt to evict.obsoleteVer - Obsolete version.explicit - True if evict is called explicitly, false if it's called
from eviction policy.filter - Optional entry filter.True if entry was marked for eviction.IgniteCheckedException - In case of error.public void batchEvict(Collection<?> keys, @Nullable GridCacheVersion obsoleteVer) throws IgniteCheckedException
batchEvict in interface CacheEvictionManagerkeys - Keys to evict.obsoleteVer - Obsolete version.IgniteCheckedException - In case of error.public void printMemoryStats()
printMemoryStats in interface GridCacheManagerprintMemoryStats in class GridCacheManagerAdapterpublic EvictionPolicy getEvictionPolicy()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018