public class GridCacheEvictionManager<K,V> extends GridCacheManagerAdapter<K,V>
cctx, log| Constructor and Description |
|---|
GridCacheEvictionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
batchEvict(Collection<? extends K> keys,
GridCacheVersion obsoleteVer) |
boolean |
evict(GridCacheEntryEx<K,V> entry,
GridCacheVersion obsoleteVer,
boolean explicit,
GridPredicate<GridCacheEntry<K,V>>[] filter) |
int |
evictQueueSize() |
boolean |
evictSyncOrNearSync() |
protected void |
onKernalStart0() |
protected void |
onKernalStop0(boolean cancel) |
void |
printMemoryStats()
Prints memory statistics (sizes of internal data structures, etc.).
|
void |
printStats()
Prints out eviction stats.
|
void |
start0() |
void |
touch(GridCacheEntryEx<K,V> e,
long topVer) |
void |
touch(GridCacheTxEx<K,V> tx) |
void |
unwind()
Notifications.
|
context, kernalStartInfo, kernalStopInfo, log, onKernalStart, onKernalStop, start, startInfo, stop, stop0, stopInfo, toStringpublic void start0()
throws GridException
start0 in class GridCacheManagerAdapter<K,V>GridException - If failed.protected void onKernalStart0()
throws GridException
onKernalStart0 in class GridCacheManagerAdapter<K,V>GridException - If failed.protected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridCacheManagerAdapter<K,V>cancel - Cancel flag.public int evictQueueSize()
public void touch(GridCacheTxEx<K,V> tx)
tx - Transaction to register for eviction policy notifications.public void touch(GridCacheEntryEx<K,V> e, long topVer)
e - Entry for eviction policy notification.public boolean evictSyncOrNearSync()
True if either evicts or near evicts are synchronized, false otherwise.public boolean evict(@Nullable GridCacheEntryEx<K,V> entry, @Nullable GridCacheVersion obsoleteVer, boolean explicit, @Nullable GridPredicate<GridCacheEntry<K,V>>[] filter) throws GridException
entry - Entry to attempt to evict.obsoleteVer - Obsolete version.filter - Optional entry filter.explicit - True if evict is called explicitly, false if it's called
from eviction policy.True if entry was marked for eviction.GridException - In case of error.public void batchEvict(Collection<? extends K> keys, @Nullable GridCacheVersion obsoleteVer) throws GridException
keys - Keys to evict.obsoleteVer - Obsolete version.GridException - In case of error.public void unwind()
public void printStats()
public void printMemoryStats()
printMemoryStats in interface GridCacheManager<K,V>printMemoryStats in class GridCacheManagerAdapter<K,V>Copyright © 2014. All rights reserved.