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) |
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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
onDisconnected, onKernalStart, onKernalStop, start, stop
public void start0() throws IgniteCheckedException
start0
in class GridCacheManagerAdapter
IgniteCheckedException
- If failed.protected void onKernalStop0(boolean cancel)
onKernalStop0
in class GridCacheManagerAdapter
cancel
- Cancel flag.public void touch(IgniteTxEntry txEntry, boolean loc)
touch
in interface CacheEvictionManager
txEntry
- Transactional entry.loc
- Local transaction flag.public void touch(GridCacheEntryEx e, AffinityTopologyVersion topVer)
touch
in interface CacheEvictionManager
e
- 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 CacheEvictionManager
entry
- 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 CacheEvictionManager
keys
- Keys to evict.obsoleteVer
- Obsolete version.IgniteCheckedException
- In case of error.public void printMemoryStats()
printMemoryStats
in interface GridCacheManager
printMemoryStats
in class GridCacheManagerAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017