public class GridCacheEvictionManager extends GridCacheManagerAdapter
cctx, log| 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) |
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 e,
AffinityTopologyVersion topVer) |
void |
touch(IgniteTxEntry txEntry,
boolean loc) |
void |
unwind()
Notifications.
|
context, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStop, start, startInfo, stop, stop0, stopInfo, toStringpublic void start0()
throws IgniteCheckedException
start0 in class GridCacheManagerAdapterIgniteCheckedException - If failed.protected void onKernalStart0()
throws IgniteCheckedException
onKernalStart0 in class GridCacheManagerAdapterIgniteCheckedException - If failed.protected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridCacheManagerAdaptercancel - Cancel flag.public int evictQueueSize()
public void touch(IgniteTxEntry txEntry, boolean loc)
txEntry - Transactional entry.public void touch(GridCacheEntryEx e, AffinityTopologyVersion 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 entry,
@Nullable
GridCacheVersion obsoleteVer,
boolean explicit,
@Nullable
CacheEntryPredicate[] 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<?> 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 GridCacheManagerprintMemoryStats in class GridCacheManagerAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017