|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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(Object oKey)
Remove the specified key from the underlying store if present. |
void |
eraseAll(Collection colKeys)
Remove the specified keys from the underlying store if present. |
void |
store(Object oKey,
Object oValue)
Store the specified value under the specified key in the underlying store. |
void |
storeAll(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(Object oKey, Object oValue)
store
in interface CacheStore
oKey
- key to store the value underoValue
- value to be stored
UnsupportedOperationException
- if this implementation or the
underlying store is read-onlypublic void storeAll(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 store
UnsupportedOperationException
- if this implementation or the
underlying store is read-onlypublic void erase(Object oKey)
erase
in interface CacheStore
oKey
- key whose mapping is being removed from the cache
UnsupportedOperationException
- if this implementation or the
underlying store is read-onlypublic void eraseAll(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 cache
UnsupportedOperationException
- if this implementation or the
underlying store is read-only
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |