Package org.jboss.netty.util.internal
Class ConcurrentIdentityHashMap.WriteThroughEntry
java.lang.Object
org.jboss.netty.util.internal.ConcurrentIdentityHashMap.SimpleEntry<K,V>
org.jboss.netty.util.internal.ConcurrentIdentityHashMap.WriteThroughEntry
- All Implemented Interfaces:
Map.Entry<K,
V>
- Enclosing class:
- ConcurrentIdentityHashMap<K,
V>
final class ConcurrentIdentityHashMap.WriteThroughEntry
extends ConcurrentIdentityHashMap.SimpleEntry<K,V>
Custom Entry class used by EntryIterator.next(), that relays setValue
changes to the underlying map.
-
Constructor Details
-
WriteThroughEntry
-
-
Method Details
-
setValue
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.
-