org.ehcache.config
Interface EvictionVeto<K,V>
- Type Parameters:
K
- the type of the keys used to access data within the cacheV
- the type of the values held within the cache
public interface EvictionVeto<K,V>
A specialized predicate used to veto eviction of cache entries.
Method Summary |
boolean |
vetoes(K key,
V value)
Returns true if the given key value pair should be vetoed from eviction. |
vetoes
boolean vetoes(K key,
V value)
- Returns
true
if the given key value pair should be vetoed from eviction.
- Parameters:
key
- the entry keyvalue
- the entry value
- Returns:
true
if eviction should be avoided