K
- the type of keys maintained by this mapV
- the type of mapped valuespublic interface CacheWriter<K,V>
Exception
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.Modifier and Type | Method and Description |
---|---|
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.
|
void write(Cache.Entry<? extends K,? extends V> entry)
entry
- the entry to be writtenCacheException
- if ????? TODO describe whenvoid writeAll(Collection<Cache.Entry<? extends K,? extends V>> entries)
entries
- the entries to be writtenCacheException
- if ????? TODO describe whenvoid delete(Object key)
key
- the key that is used for the delete operationCacheException
- if ????? TODO describe whenvoid deleteAll(Collection<?> keys)
keys
- the keys for entries that have to be removed from the cacheCacheException
- if ????? TODO describe whenCopyright © 2013. All Rights Reserved.