|
||||||||||
| 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(Object key)
Delete the cache entry from the store |
void |
deleteAll(Collection<?> 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)
entry - the entry to be written
CacheException - if ????? TODO describe whenvoid writeAll(Collection<Cache.Entry<? extends K,? extends V>> entries)
entries - the entries to be written
CacheException - if ????? TODO describe whenvoid delete(Object key)
key - the key that is used for the delete operation
CacheException - if ????? TODO describe whenvoid deleteAll(Collection<?> entries)
entries - the entries that have been removed from the cache
CacheException - if ????? TODO describe when
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||