K
- the type of keys handled by this loaderV
- the type of values generated by this loaderpublic interface CacheLoader<K,V>
javax.cache.Cache#loadAll(Iterable, boolean,
CompletionListener)
method.
See CacheWriter
which is the corollary for write-through caching.CacheWriter
Cache.Entry<K,V> load(K key)
null
should be returned.key
- the key identifying the object being loadednull
if the object can't be loadedMap<K,V> loadAll(Iterable<? extends K> keys)
keys
- keys identifying the values to be loadedCopyright © 2013. All Rights Reserved.