|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.cache.AbstractCacheLoader
com.tangosol.net.cache.AbstractCacheStore
public abstract class AbstractCacheStore
An abstract base class for the JCache CacheLoader.
Constructor Summary | |
---|---|
AbstractCacheStore() |
Method Summary | |
---|---|
void |
erase(java.lang.Object oKey) Remove the specified key from the underlying store if present. |
void |
eraseAll(java.util.Collection colKeys) Remove the specified keys from the underlying store if present. |
void |
store(java.lang.Object oKey, java.lang.Object oValue) Store the specified value under the specified key in the underlying store. |
void |
storeAll(java.util.Map mapEntries) Store the specified values under the specified keys in the underlying store. |
Methods inherited from class com.tangosol.net.cache.AbstractCacheLoader |
---|
load, loadAll |
Methods inherited from interface com.tangosol.net.cache.CacheLoader |
---|
load, loadAll |
Constructor Detail |
---|
public AbstractCacheStore()
Method Detail |
---|
public void store(java.lang.Object oKey, java.lang.Object oValue)
store
in interface CacheStore
oKey
- key to store the value underoValue
- value to be storedjava.lang.UnsupportedOperationException
- if this implementation or the underlying store is read-onlypublic void storeAll(java.util.Map mapEntries)
The implementation of this method calls store(java.lang.Object, java.lang.Object)
for each entry in the supplied Map. Once stored successfully, an entry is removed from the Map (if possible).
Note: For many types of persistent stores, a single store operation is as expensive as a bulk store operation; therefore, subclasses should override this method if possible.
storeAll
in interface CacheStore
mapEntries
- a Map of any number of keys and values to storejava.lang.UnsupportedOperationException
- if this implementation or the underlying store is read-onlypublic void erase(java.lang.Object oKey)
erase
in interface CacheStore
oKey
- key whose mapping is being removed from the cachejava.lang.UnsupportedOperationException
- if this implementation or the underlying store is read-onlypublic void eraseAll(java.util.Collection colKeys)
The implementation of this method calls erase(java.lang.Object)
for each key in the supplied Collection. Once erased successfully, a key is removed from the Collection (if possible).
Note: For many types of persistent stores, a single erase operation is as expensive as a bulk erase operation; therefore, subclasses should override this method if possible.
eraseAll
in interface CacheStore
colKeys
- keys whose mappings are being removed from the cachejava.lang.UnsupportedOperationException
- if this implementation or the underlying store is read-only
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |