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,
IgnitePredicate<javax.cache.Cache.Entry<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(IgniteTxEntry<K,V> txEntry,
boolean loc) |
void |
unwind()
Notifications.
|
context, kernalStartInfo, kernalStopInfo, log, onKernalStart, onKernalStop, start, startInfo, stop, stop0, stopInfo, toStringpublic void start0()
throws IgniteCheckedException
start0 in class GridCacheManagerAdapter<K,V>IgniteCheckedException - If failed.protected void onKernalStart0()
throws IgniteCheckedException
onKernalStart0 in class GridCacheManagerAdapter<K,V>IgniteCheckedException - If failed.protected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridCacheManagerAdapter<K,V>cancel - Cancel flag.public int evictQueueSize()
public void touch(IgniteTxEntry<K,V> txEntry, boolean loc)
txEntry - Transactional entry.public void touch(GridCacheEntryEx<K,V> e, long topVer)
e - Entry for eviction policy notification.topVer - Topology version.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 IgnitePredicate<javax.cache.Cache.Entry<K,V>>[] filter) throws IgniteCheckedException
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.IgniteCheckedException - In case of error.public void batchEvict(Collection<? extends K> keys, @Nullable GridCacheVersion obsoleteVer) throws IgniteCheckedException
keys - Keys to evict.obsoleteVer - Obsolete version.IgniteCheckedException - 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>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015