Package org.apache.ignite.cache.eviction
Interface EvictionFilter<K,V>
-
- All Superinterfaces:
Serializable
public interface EvictionFilter<K,V> extends Serializable
Eviction filter to specify which entries should not be evicted. Not applicable when calling explicit evict viaEvictableEntry.evict()
. IfevictAllowed(Cache.Entry)
method returnsfalse
then eviction policy will not be notified and entry will never be evicted.Eviction filter can be configured via
CacheConfiguration.getEvictionFilter()
configuration property. Default value isnull
which means that all cache entries will be tracked by eviction policy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
evictAllowed(javax.cache.Cache.Entry<K,V> entry)
Checks if entry may be evicted from cache.
-