java.util.concurrent
Class ConcurrentHashMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<TypeK,TypeV>
      extended by org.cliffc.high_scale_lib.NonBlockingHashMap<K,V>
          extended by java.util.concurrent.ConcurrentHashMap<K,V>
Type Parameters:
TypeK - the type of keys maintained by this map
TypeV - the type of mapped values
All Implemented Interfaces:
Serializable, Cloneable, ConcurrentMap<K,V>, Map<K,V>

public class ConcurrentHashMap<K,V>
extends NonBlockingHashMap<K,V>

A plug-in replacement for JDK1.5 ConcurrentHashMap. This version is based on org.cliffc.high_scale_lib.NonBlockingHashMap. This solution should be completely compatible, including the serialized forms and all multi-threaded ordering guarantees.

Since:
1.5
Author:
Cliff Click
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
ConcurrentHashMap()
           
ConcurrentHashMap(int initialCapacity)
           
ConcurrentHashMap(int initialCapacity, float loadFactor, int concurrencyLevel)
           
ConcurrentHashMap(Map<? extends K,? extends V> t)
           
 
Method Summary
 
Methods inherited from class org.cliffc.high_scale_lib.NonBlockingHashMap
clear, clone, contains, containsKey, containsValue, elements, entrySet, get, initialize, isEmpty, keys, keySet, print, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, reprobes, size, toString, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ConcurrentHashMap

public ConcurrentHashMap()

ConcurrentHashMap

public ConcurrentHashMap(int initialCapacity)

ConcurrentHashMap

public ConcurrentHashMap(int initialCapacity,
                         float loadFactor,
                         int concurrencyLevel)

ConcurrentHashMap

public ConcurrentHashMap(Map<? extends K,? extends V> t)


Copyright © 2011. All Rights Reserved.