| javax.cache.spi.CacheStore
CacheStore | public interface CacheStore extends CacheLoader<K, V>(Code) | | A CacheSore is an extension to a CacheLoader that is used by a cache to
submit cache modifications back to the source of the data.
author: cp 2003.05.29 |
Method Summary | |
public void | erase(K oKey) Remove the specified key from the underlying store if present. | public void | eraseAll(Collection<? extends K> colKeys) Remove the specified keys from the underlying store if present. | public void | store(K oKey, V oValue) Store the specified value under the specified key in the underlying
store. | public void | storeAll(Map<? extends K, ? extends V> mapEntries) Store the specified values under the specified keys in the underlying
store. |
erase | public void erase(K oKey) throws CacheStoreException(Code) | | Remove the specified key from the underlying store if present.
Parameters: oKey - key whose mapping is being removed from the cache throws: CacheStoreException - the CacheStore wrap an exception thatoccurs when erasing data, such as an exception from the datasource, as a CacheStoreException to report the failure backto the calling cache throws: UnsupportedOperationException - if this implementation or theunderlying store is read-only or does not support the eraseoperation |
eraseAll | public void eraseAll(Collection<? extends K> colKeys) throws CacheStoreException(Code) | | Remove the specified keys from the underlying store if present.
Parameters: colKeys - keys whose mappings are being removed from the cache throws: CacheStoreException - the CacheStore wrap an exception thatoccurs when erasing data, such as an exception from the datasource, as a CacheStoreException to report the failure backto the calling cache throws: UnsupportedOperationException - if this implementation or theunderlying store is read-only or does not support the eraseoperation |
store | public void store(K oKey, V oValue) throws CacheStoreException(Code) | | Store the specified value under the specified key in the underlying
store. This method is intended to support both key/value creation
and value update for a specific key.
Parameters: oKey - key to store the value under Parameters: oValue - value to be stored throws: CacheStoreException - the CacheStore wrap an exception thatoccurs when storing data, such as an exception from the datasource, as a CacheStoreException to report the failure backto the calling cache throws: UnsupportedOperationException - if this implementation or theunderlying store is read-only |
storeAll | public void storeAll(Map<? extends K, ? extends V> mapEntries) throws CacheStoreException(Code) | | Store the specified values under the specified keys in the underlying
store. This method is intended to support both key/value creation
and value update for the specified keys.
Parameters: mapEntries - a Map of any number of keys and values to store throws: CacheStoreException - the CacheStore wrap an exception thatoccurs when storing data, such as an exception from the datasource, as a CacheStoreException to report the failure backto the calling cache throws: UnsupportedOperationException - if this implementation or theunderlying store is read-only |
|
|