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 Details

    • LocalSharedAttributeMap

      public LocalSharedAttributeMap(SharedMap<String,V> sharedMap)
      Creates a new shared attribute map.
      Parameters:
      sharedMap - the shared map
  • Method Details

    • getMutex

      public 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<String,V> getSharedMap()
      Returns the wrapped shared map.