|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - the type of keys handled by this loaderV - the type of values generated by this loaderpublic interface CacheLoader<K,V>
Used when a cache is read-through or when loading data into a cache via the Cache.load(Object)
and Cache.loadAll(java.util.Set) methods.
CacheWriter which is the corollary for load used for write-through caching.
| Method Summary | |
|---|---|
Cache.Entry<K,V> |
load(K key)
Loads an object. |
Map<K,V> |
loadAll(Iterable<? extends K> keys)
Loads multiple objects. |
| Method Detail |
|---|
Cache.Entry<K,V> load(K key)
key - the key identifying the object being loaded
Map<K,V> loadAll(Iterable<? extends K> keys)
keys - keys identifying the values to be loaded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||