|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - the type of keys maintained by this mapV - the type of mapped valuespublic interface CacheWriter<K,V>
A CacheWriter is used for write-through and write-behind caching to a underlying resource.
| Method Summary | |
|---|---|
void |
delete(Cache.Entry<K,V> entry)
Delete the cache entry from the store |
void |
deleteAll(Collection<Cache.Entry<? extends K,? extends V>> entries)
Remove data and keys from the underlying store for the given collection of keys, if present. |
void |
write(Cache.Entry<K,V> entry)
Write the specified value under the specified key to the underlying store. |
void |
writeAll(Collection<Cache.Entry<? extends K,? extends V>> entries)
Write the specified entries to the underlying store. |
| Method Detail |
|---|
void write(Cache.Entry<K,V> entry)
throws CacheException
entry - the entry to be written
CacheException
void writeAll(Collection<Cache.Entry<? extends K,? extends V>> entries)
throws CacheException
entries - the entries to be written
CacheException
void delete(Cache.Entry<K,V> entry)
throws CacheException
entry - the cache entry that is used for the delete operation
CacheException
void deleteAll(Collection<Cache.Entry<? extends K,? extends V>> entries)
throws CacheException
entries - the entries that have been removed from the cache
CacheException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||