public interface CacheLoader<K,V>
| Modifier and Type | Method and Description |
|---|---|
Cache.Entry<K,V> |
load(java.lang.Object key)
Obtains the value associated with the key, which will be loaded into the Cache
|
java.util.Map<K,V> |
loadAll(java.lang.Iterable<? extends K> keys)
Creates a set of entries that will be loaded into the cache.
|
Cache.Entry<K,V> load(java.lang.Object key)
key - associated with the value.CacheExceptionjava.util.Map<K,V> loadAll(java.lang.Iterable<? extends K> keys)
keys - the collection of keysCacheException