|
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.util.AbstractKeyBasedMap
com.tangosol.net.cache.CacheStoreMap.ReadWriteMap
public static class CacheStoreMap.ReadWriteMap
A Map implementation that delegates straight through to a CacheStore.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.tangosol.util.AbstractKeyBasedMap |
|---|
AbstractKeyBasedMap.EntrySet, AbstractKeyBasedMap.KeySet, AbstractKeyBasedMap.ValuesCollection |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry |
| Field Summary | |
|---|---|
protected boolean |
m_fBlindTrue means that put() and remove() can return null, regardless of the presence of an old value. |
protected boolean |
m_fEraseUnsupportedTrue means that a call to the CacheStore erase() method is assumed to be unsupported. |
protected boolean |
m_fStoreUnsupportedTrue means that a call to the CacheStore store() method is assumed to be unsupported. |
protected CacheStore |
m_storeThe CacheStore to delegate all Map operations to. |
| Constructor Summary | |
|---|---|
CacheStoreMap.ReadWriteMap(CacheStore store, boolean fBlind)Construct a read/write CacheStoreMap. |
|
| Method Summary | |
|---|---|
void |
clear()Clear is explicitly not implemented. |
boolean |
containsKey(java.lang.Object oKey)Returns true if this map contains a mapping for the specified key. |
java.lang.Object |
get(java.lang.Object oKey)Returns the value to which this map maps the specified key. |
java.util.Map |
getAll(java.util.Collection colKeys)Get all the specified keys, if they are in the Map. |
protected boolean |
isBlindPutAllowed()Determine if the "blind put" optimization is possible. |
protected boolean |
isBlindRemoveAllowed()Determine if the "blind remove" optimization is possible. |
protected boolean |
isEraseUnsupported()Determine if the CacheStore has been determined to be read-only for erase() operations. |
protected boolean |
isStoreUnsupported()Determine if the CacheStore has been determined to be read-only for store() operations. |
protected java.util.Iterator |
iterateKeys()Create an iterator over the keys in this Map. |
java.lang.Object |
put(java.lang.Object oKey, java.lang.Object oValue)Associates the specified value with the specified key in this map. |
void |
putAll(java.util.Map map)Copies all of the mappings from the specified map to this map. |
java.lang.Object |
remove(java.lang.Object oKey)Removes the mapping for this key from this map if present. |
protected boolean |
removeBlind(java.lang.Object oKey)Removes the mapping for this key from this map if present. |
| Methods inherited from class com.tangosol.util.AbstractKeyBasedMap |
|---|
clone, containsValue, entrySet, equals, hashCode, instantiateEntrySet, instantiateKeySet, instantiateValues, isEmpty, keySet, size, toString, values |
| Field Detail |
|---|
protected CacheStore m_store
protected boolean m_fBlind
protected boolean m_fStoreUnsupported
protected boolean m_fEraseUnsupported
| Constructor Detail |
|---|
public CacheStoreMap.ReadWriteMap(CacheStore store,
boolean fBlind)
store - the CacheStore to delegate read and write operations tofBlind - pass true to optimize put() and remove() by allowing them to skip the loading of old values| Method Detail |
|---|
public void clear()
clear in interface java.util.Mapclear in class AbstractKeyBasedMappublic boolean containsKey(java.lang.Object oKey)
containsKey in interface java.util.MapcontainsKey in class AbstractKeyBasedMappublic java.lang.Object get(java.lang.Object oKey)
get in interface java.util.Mapget in class AbstractKeyBasedMapoKey - the key objectpublic java.util.Map getAll(java.util.Collection colKeys)
getAll in class AbstractKeyBasedMapcolKeys - a collection of keys that may be in the named cacheprotected java.util.Iterator iterateKeys()
iterateKeys in class AbstractKeyBasedMap
public java.lang.Object put(java.lang.Object oKey,
java.lang.Object oValue)
put in interface java.util.Mapput in class AbstractKeyBasedMapoKey - key with which the specified value is to be associatedoValue - value to be associated with the specified keypublic void putAll(java.util.Map map)
AbstractKeyBasedMap.put(java.lang.Object, java.lang.Object) on this map once for each mapping in the passed map. The behavior of this operation is unspecified if the passed map is modified while the operation is in progress.putAll in interface java.util.MapputAll in class AbstractKeyBasedMapmap - the Map containing the key/value pairings to put into this Mappublic java.lang.Object remove(java.lang.Object oKey)
remove in interface java.util.Mapremove in class AbstractKeyBasedMapoKey - key whose mapping is to be removed from the mapprotected boolean removeBlind(java.lang.Object oKey)
removeBlind in class AbstractKeyBasedMapoKey - key whose mapping is to be removed from the mapprotected boolean isBlindPutAllowed()
protected boolean isBlindRemoveAllowed()
protected boolean isStoreUnsupported()
protected boolean isEraseUnsupported()
|
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 | |||||||