Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Web Flow
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.binding.collection
Interface SharedMap

All Superinterfaces:
  java.util.Map

All Known Implementing Classes:
  HttpServletContextMap, HttpSessionMap, PortletContextMap, PortletSessionMap, SharedMapDecorator

    public interface SharedMap

extends java.util.Map

A simple subinterface of `Map` that exposes a mutex that application code can synchronize on.

Expected to be implemented by Maps that are backed by shared objects that require synchronization between multiple threads. An example would be the HTTP session map.

Author:
  Keith Donald

Nested Class Summary

Nested classes/interfaces inherited from interface java.util.Map
`java.util.Map.Entry<K,V>`

Method Summary
`java.lang.Object` | `getMutex()` Returns the shared mutex that may be synchronized on using a synchronized block.

Methods inherited from interface java.util.Map
`clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values`

Method Detail

### getMutex

    java.lang.Object getMutex()

  Returns the shared mutex that may be synchronized on using a synchronized block. The returned mutex is guaranteed to be non-null. Example usage:

       synchronized (sharedMap.getMutex()) {
              // do synchronized work
       }

  Returns:
    the mutex

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Web Flow
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD