org.ehcache.config
Interface EvictionVeto<K,V>

Type Parameters:
K - the type of the keys used to access data within the cache
V - 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.
 

Method Detail

vetoes

boolean vetoes(K key,
               V value)
Returns true if the given key value pair should be vetoed from eviction.

Parameters:
key - the entry key
value - the entry value
Returns:
true if eviction should be avoided