public interface GridCacheEvictionFilter<K,V>
GridCacheEntry.evict().
If evictAllowed(GridCacheEntry) method returns false then eviction
policy will not be notified and entry will never be evicted.
Eviction filter can be configured via GridCacheConfiguration.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(GridCacheEntry<K,V> entry)
Checks if entry may be evicted from cache.
|
boolean evictAllowed(GridCacheEntry<K,V> entry)
entry - Cache entry.True if it is allowed to evict this entry.Copyright © 2014. All rights reserved.