|
||||||||||
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 to an underlying resource.
The semantics of write-through when anException
is thrown are implementation specific.
The transactional semantics of write-through on a transactional cache are implementation specific.
The entry passed into write(javax.cache.Cache.Entry)
is independent of the cache mapping for that key
meaning that if the value changes in the cache or is removed it does not change the said entry.
Method Summary | |
---|---|
void |
delete(Object key)
Delete the cache entry from the store |
void |
deleteAll(Collection<?> keys)
Remove data and keys from the underlying store for the given collection of keys, if present. |
void |
write(Cache.Entry<? extends K,? extends 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<? extends K,? extends 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<?> keys)
keys
- the keys for entries that have to be 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 |