org.sourceforge.jemm.util.managed
Interface EnhancedConcurrentMap<K,V>

Type Parameters:
K - The key type
V - The value type
All Superinterfaces:
java.util.concurrent.ConcurrentMap<K,V>, java.util.Map<K,V>
All Known Implementing Classes:
EnhancedConcurrentHashMap

public interface EnhancedConcurrentMap<K,V>
extends java.util.concurrent.ConcurrentMap<K,V>

An EnhancedConcurrentMap extends concurrent map to provide an ability to perform atomic actions at the key level.

Author:
Rory Graves

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
 void perform(K key, ECMAction<K,V> action)
          Perform the defined action whilst holding the lock on the given key.
 
Methods inherited from interface java.util.concurrent.ConcurrentMap
putIfAbsent, remove, replace, replace
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

perform

void perform(K key,
             ECMAction<K,V> action)
Perform the defined action whilst holding the lock on the given key.

Parameters:
key - The item to lock.
action - The action to perform at the entry level.


Copyright © 2009. All Rights Reserved.