Interface CacheEvictionManager
-
- All Superinterfaces:
GridCacheManager
- All Known Implementing Classes:
CacheOffheapEvictionManager,GridCacheEvictionManager
public interface CacheEvictionManager extends GridCacheManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbatchEvict(Collection<?> keys, @Nullable GridCacheVersion obsoleteVer)booleanevict(@Nullable GridCacheEntryEx entry, @Nullable GridCacheVersion obsoleteVer, boolean explicit, @Nullable CacheEntryPredicate[] filter)voidtouch(GridCacheEntryEx e)voidtouch(IgniteTxEntry txEntry, boolean loc)-
Methods inherited from interface org.apache.ignite.internal.processors.cache.GridCacheManager
onDisconnected, onKernalStart, onKernalStop, printMemoryStats, start, stop
-
-
-
-
Method Detail
-
touch
void touch(IgniteTxEntry txEntry, boolean loc)
- Parameters:
txEntry- Transactional entry.loc- Local transaction flag.
-
touch
void touch(GridCacheEntryEx e)
- Parameters:
e- Entry for eviction policy notification.
-
evict
boolean evict(@Nullable @Nullable GridCacheEntryEx entry, @Nullable @Nullable GridCacheVersion obsoleteVer, boolean explicit, @Nullable @Nullable CacheEntryPredicate[] filter) throws IgniteCheckedException- Parameters:
entry- Entry to attempt to evict.obsoleteVer- Obsolete version.filter- Optional entry filter.explicit-Trueif evict is called explicitly,falseif it's called from eviction policy.- Returns:
Trueif entry was marked for eviction.- Throws:
IgniteCheckedException- In case of error.
-
batchEvict
void batchEvict(Collection<?> keys, @Nullable @Nullable GridCacheVersion obsoleteVer) throws IgniteCheckedException
- Parameters:
keys- Keys to evict.obsoleteVer- Obsolete version.- Throws:
IgniteCheckedException- In case of error.
-
-