|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - the type of keys maintained by this mapV - the type of mapped valuespublic interface CacheLoader<K,V>
Used for read-through caching and loading data into a cache.
See CacheWriter which is used for write-through caching.
| Method Summary | |
|---|---|
boolean |
canLoad(Object key)
Checks whether an object for the key can be loaded. |
Cache.Entry<K,V> |
load(Object key)
Loads an object. |
Map<K,V> |
loadAll(Collection<? extends K> keys)
Loads multiple objects. |
| Method Detail |
|---|
Cache.Entry<K,V> load(Object key)
key - the key identifying the object being loaded
Map<K,V> loadAll(Collection<? extends K> keys)
keys - keys identifying the values to be loaded
boolean canLoad(Object key)
Cache.replace(Object, Object).
key - the key to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||