|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-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
com.tangosol.net.cache.MapCacheStore
public class MapCacheStore
A CacheStore that sits directly on top of a Map.
| Constructor Summary | |
|---|---|
MapCacheStore(java.util.Map map)Create a CacheStore that delegates to a Map. |
|
| 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. |
java.util.Map |
getMap()Returns the Map that this CacheStore uses for its storage. |
java.util.Iterator |
keys()Iterate all keys in the underlying store. |
java.lang.Object |
load(java.lang.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(java.util.Map map)Configures the Map that this CacheStore uses for its storage. |
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 |
|---|
loadAll |
| Methods inherited from interface com.tangosol.net.cache.CacheLoader |
|---|
loadAll |
| Constructor Detail |
|---|
public MapCacheStore(java.util.Map map)
map - the Map to use as the underlying store for this CacheStore| Method Detail |
|---|
public java.lang.Object load(java.lang.Object oKey)
load in interface CacheLoaderload in class AbstractCacheLoaderoKey - key whose associated value is to be returned
public void store(java.lang.Object oKey,
java.lang.Object oValue)
store in interface CacheStorestore in class AbstractCacheStoreoKey - key to store the value underoValue - value to be storedpublic void storeAll(java.util.Map mapEntries)
storeAll in interface CacheStorestoreAll in class AbstractCacheStoremapEntries - a Map of any number of keys and values to storepublic void erase(java.lang.Object oKey)
erase in interface CacheStoreerase in class AbstractCacheStoreoKey - key to remove from the storepublic void eraseAll(java.util.Collection colKeys)
eraseAll in interface CacheStoreeraseAll in class AbstractCacheStorecolKeys - keys whose mappings are being removed from the cachepublic java.util.Iterator keys()
keys in interface IterableCacheLoaderpublic java.util.Map getMap()
protected void setMap(java.util.Map map)
map - the Map that this CacheStore will use
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||