K - the key type for the cacheV - the value type for the cachepublic interface EvictionAdvisor<K,V>
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
adviseAgainstEviction(K key,
                     V value)
Returns  
true if the given key value pair should not be evicted if possible. | 
boolean adviseAgainstEviction(K key, V value)
true if the given key value pair should not be evicted if possible.
 
   Any exception thrown from this method will be logged and the result considered false.
 
key - the cache keyvalue - the cache valuetrue if eviction should be avoided, false otherwise