org.springframework.webflow.core.collection
Class LocalSharedAttributeMap<V>
java.lang.Object
org.springframework.webflow.core.collection.LocalAttributeMap<V>
org.springframework.webflow.core.collection.LocalSharedAttributeMap<V>
- All Implemented Interfaces:
- java.io.Serializable, MapAdaptable<java.lang.String,V>, AttributeMap<V>, MutableAttributeMap<V>, SharedAttributeMap<V>
public class LocalSharedAttributeMap<V>
- extends LocalAttributeMap<V>
- implements SharedAttributeMap<V>
An attribute map that exposes a mutex that application code can synchronize on. This class wraps another shared map
in an attribute map.
The mutex can be used to serialize concurrent access to the shared map's contents by multiple threads.
- Author:
- Keith Donald
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
getMutex()
Returns the shared map's mutex, which may be synchronized on to block access to the map by other threads. |
protected SharedMap<java.lang.String,V> |
getSharedMap()
Returns the wrapped shared map. |
Methods inherited from class org.springframework.webflow.core.collection.LocalAttributeMap |
asMap, clear, contains, contains, createTargetMap, createTargetMap, equals, extract, get, get, get, get, getArray, getBoolean, getBoolean, getCollection, getCollection, getInteger, getInteger, getLong, getLong, getMapInternal, getNumber, getNumber, getRequired, getRequired, getRequiredArray, getRequiredBoolean, getRequiredCollection, getRequiredCollection, getRequiredInteger, getRequiredLong, getRequiredNumber, getRequiredString, getString, getString, hashCode, initAttributes, isEmpty, put, putAll, remove, removeAll, replaceWith, size, toString, union |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.webflow.core.collection.AttributeMap |
contains, contains, get, get, get, get, getArray, getBoolean, getBoolean, getCollection, getCollection, getInteger, getInteger, getLong, getLong, getNumber, getNumber, getRequired, getRequired, getRequiredArray, getRequiredBoolean, getRequiredCollection, getRequiredCollection, getRequiredInteger, getRequiredLong, getRequiredNumber, getRequiredString, getString, getString, isEmpty, size, union |
Methods inherited from interface org.springframework.binding.collection.MapAdaptable |
asMap |
LocalSharedAttributeMap
public LocalSharedAttributeMap(SharedMap<java.lang.String,V> sharedMap)
- Creates a new shared attribute map.
- Parameters:
sharedMap
- the shared map
getMutex
public java.lang.Object getMutex()
- Description copied from interface:
SharedAttributeMap
- Returns the shared map's mutex, which may be synchronized on to block access to the map by other threads.
- Specified by:
getMutex
in interface SharedAttributeMap<V>
getSharedMap
protected SharedMap<java.lang.String,V> getSharedMap()
- Returns the wrapped shared map.