public class GridCacheEvictionManager extends GridCacheManagerAdapter implements CacheEvictionManager
cctx, log, starting| Constructor and Description |
|---|
GridCacheEvictionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
batchEvict(Collection<?> keys,
@Nullable GridCacheVersion obsoleteVer) |
boolean |
evict(@Nullable GridCacheEntryEx entry,
@Nullable GridCacheVersion obsoleteVer,
boolean explicit,
@Nullable 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() |
protected void |
stop0(boolean cancel,
boolean destroy) |
void |
touch(GridCacheEntryEx e) |
void |
touch(IgniteTxEntry txEntry,
boolean loc) |
context, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStart0, onKernalStop, start, startInfo, stop, 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)
touch in interface CacheEvictionManagere - Entry for eviction policy notification.public boolean evict(@Nullable
@Nullable GridCacheEntryEx entry,
@Nullable
@Nullable GridCacheVersion obsoleteVer,
boolean explicit,
@Nullable
@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 @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()
protected void stop0(boolean cancel,
boolean destroy)
stop0 in class GridCacheManagerAdaptercancel - Cancel flag.destroy - Cache destroy flag.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020