Class LocalSharedAttributeMap<V>
java.lang.Object
org.springframework.webflow.core.collection.LocalAttributeMap<V>
org.springframework.webflow.core.collection.LocalSharedAttributeMap<V>
- All Implemented Interfaces:
Serializable
,MapAdaptable<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:
-
Constructor Summary
ConstructorsConstructorDescriptionLocalSharedAttributeMap
(SharedMap<String, V> sharedMap) Creates a new shared attribute map. -
Method Summary
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
Methods inherited from interface org.springframework.webflow.core.collection.MutableAttributeMap
clear, extract, put, putAll, remove, removeAll, replaceWith
-
Constructor Details
-
Method Details
-
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 interfaceSharedAttributeMap<V>
-