Class LocalSharedAttributeMap<V>
java.lang.Object
org.springframework.webflow.core.collection.LocalAttributeMap<V>
org.springframework.webflow.core.collection.LocalSharedAttributeMap<V>
- All Implemented Interfaces:
Serializable,org.springframework.binding.collection.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(org.springframework.binding.collection.SharedMap<String, V> sharedMap) Creates a new shared attribute map. -
Method Summary
Modifier and TypeMethodDescriptiongetMutex()Returns the shared map's mutex, which may be synchronized on to block access to the map by other threads.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, unionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, unionMethods inherited from interface org.springframework.binding.collection.MapAdaptable
asMapMethods 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:SharedAttributeMapReturns the shared map's mutex, which may be synchronized on to block access to the map by other threads.- Specified by:
getMutexin interfaceSharedAttributeMap<V>
-