public interface EvictionFilter<K,V> extends Serializable
EvictableEntry.evict()
.
If evictAllowed(Cache.Entry)
method returns false
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 is null
which means that all
cache entries will be tracked by eviction policy.
Modifier and Type | Method and Description |
---|---|
boolean |
evictAllowed(javax.cache.Cache.Entry<K,V> entry)
Checks if entry may be evicted from cache.
|
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023