|
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
com.tangosol.net.cache.MapCacheStore
public class MapCacheStore
A CacheStore that sits directly on top of a Map.
Constructor Summary | |
---|---|
MapCacheStore(Map map)
Create a CacheStore that delegates to a Map. |
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. |
Map |
getMap()
Returns the Map that this CacheStore uses for its storage. |
Iterator |
keys()
Iterate all keys in the underlying store. |
Object |
load(Object oKey)
Return the value associated with the specified key, or null if the key does not have an associated value in the underlying store. |
protected void |
setMap(Map map)
Configures the Map that this CacheStore uses for its storage. |
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 |
---|
loadAll |
Methods inherited from interface com.tangosol.net.cache.CacheLoader |
---|
loadAll |
Methods inherited from interface com.tangosol.net.cache.CacheLoader |
---|
loadAll |
Constructor Detail |
---|
public MapCacheStore(Map map)
map
- the Map to use as the underlying store for this CacheStoreMethod Detail |
---|
public Object load(Object oKey)
load
in interface CacheLoader
load
in class AbstractCacheLoader
oKey
- key whose associated value is to be returned
public void store(Object oKey, Object oValue)
store
in interface CacheStore
store
in class AbstractCacheStore
oKey
- key to store the value underoValue
- value to be storedpublic void storeAll(Map mapEntries)
storeAll
in interface CacheStore
storeAll
in class AbstractCacheStore
mapEntries
- a Map of any number of keys and values to storepublic void erase(Object oKey)
erase
in interface CacheStore
erase
in class AbstractCacheStore
oKey
- key to remove from the storepublic void eraseAll(Collection colKeys)
eraseAll
in interface CacheStore
eraseAll
in class AbstractCacheStore
colKeys
- keys whose mappings are being removed from the cachepublic Iterator keys()
keys
in interface IterableCacheLoader
public Map getMap()
protected void setMap(Map map)
map
- the Map that this CacheStore will use
|
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 |