Package org.jboss.netty.util.internal
Class ConcurrentIdentityWeakKeyHashMap.WriteThroughEntry
- java.lang.Object
-
- org.jboss.netty.util.internal.ConcurrentIdentityWeakKeyHashMap.SimpleEntry<K,V>
-
- org.jboss.netty.util.internal.ConcurrentIdentityWeakKeyHashMap.WriteThroughEntry
-
- All Implemented Interfaces:
java.util.Map.Entry<K,V>
- Enclosing class:
- ConcurrentIdentityWeakKeyHashMap<K,V>
final class ConcurrentIdentityWeakKeyHashMap.WriteThroughEntry extends ConcurrentIdentityWeakKeyHashMap.SimpleEntry<K,V>
Custom Entry class used by EntryIterator.next(), that relays setValue changes to the underlying map.
-
-
Constructor Summary
Constructors Constructor Description WriteThroughEntry(K k, V v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
setValue(V value)
Set our entry's value and write through to the map.
-
-
-
Method Detail
-
setValue
public V setValue(V value)
Set our entry's value and write through to the map. The value to return is somewhat arbitrary here. Since a WriteThroughEntry does not necessarily track asynchronous changes, the most recent "previous" value could be different from what we return (or could even have been removed in which case the put will re-establish). We do not and can not guarantee more.
-
-