public class AbstractCacheBacking<K,V> extends java.lang.Object implements CacheBacking<K,V>
Constructor and Description |
---|
AbstractCacheBacking() |
Modifier and Type | Method and Description |
---|---|
void |
delete(DistCacheEntry entry) |
void |
delete(java.lang.Object key) |
void |
deleteAll(java.util.Collection<?> entries) |
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.
|
void |
updateTime(DistCacheEntry distCacheEntry) |
void |
write(Cache.Entry<K,V> entry) |
void |
write(DistCacheEntry entry) |
void |
writeAll(java.util.Collection<Cache.Entry<? extends K,? extends V>> entries) |
public void load(DistCacheEntry entry, CacheLoaderCallback cb)
load
in interface CacheLoaderExt<K,V>
public void write(DistCacheEntry entry)
write
in interface CacheWriterExt<K,V>
public void delete(DistCacheEntry entry)
delete
in interface CacheWriterExt<K,V>
public void updateTime(DistCacheEntry distCacheEntry)
updateTime
in interface CacheWriterExt<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 void write(Cache.Entry<K,V> entry)
write
in interface CacheWriter<K,V>
public void writeAll(java.util.Collection<Cache.Entry<? extends K,? extends V>> entries)
writeAll
in interface CacheWriter<K,V>
public void delete(java.lang.Object key)
delete
in interface CacheWriter<K,V>
public void deleteAll(java.util.Collection<?> entries)
deleteAll
in interface CacheWriter<K,V>