|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
K - the key type for the cacheV - the value type for the cachepublic interface EvictionAdvisor<K,V>
A specialized predicate used to advise on eviction of cache entries.
| Method Summary | |
|---|---|
boolean |
adviseAgainstEviction(K key,
V value)
Returns true if the given key value pair should not be evicted if possible. |
| Method Detail |
|---|
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 value
true if eviction should be avoided, false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||