public class CacheLoaderAdapter<K,V> extends java.lang.Object implements CacheLoaderExt<K,V>
Constructor and Description |
---|
CacheLoaderAdapter(CacheLoader<K,V> loader) |
Modifier and Type | Method and Description |
---|---|
void |
load(DistCacheEntry entry,
CacheLoaderCallback cb) |
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.
|
java.lang.String |
toString() |
public CacheLoaderAdapter(CacheLoader<K,V> loader)
public void load(DistCacheEntry entry, CacheLoaderCallback cb)
load
in interface CacheLoaderExt<K,V>
public Cache.Entry<K,V> load(java.lang.Object key)
CacheLoader
load
in interface CacheLoader<K,V>
key
- associated with the value.public java.util.Map<K,V> loadAll(java.lang.Iterable<? extends K> keys)
CacheLoader
loadAll
in interface CacheLoader<K,V>
keys
- the collection of keyspublic java.lang.String toString()
toString
in class java.lang.Object