Class ManagedConcurrentWeakHashMap<K,V>
- java.lang.Object
- 
- java.util.AbstractMap<K,V>
- 
- org.apache.tomcat.util.collections.ManagedConcurrentWeakHashMap<K,V>
 
 
- 
- Type Parameters:
- K- The type of keys used with the Map instance
- V- The type of values used with the Map instance
 - All Implemented Interfaces:
- java.util.concurrent.ConcurrentMap<K,V>,- java.util.Map<K,V>
 
 public class ManagedConcurrentWeakHashMap<K,V> extends java.util.AbstractMap<K,V> implements java.util.concurrent.ConcurrentMap<K,V>Concurrent hash map that holds its keys via weak references. UnlikeWeakHashMapthis class does not handle dead keys during common access operations, but expects you to call itsmaintain()method periodically. Both keys and values are expected to be not-null.
- 
- 
Constructor SummaryConstructors Constructor Description ManagedConcurrentWeakHashMap()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.Set<java.util.Map.Entry<K,V>>entrySet()Vget(java.lang.Object key)booleanisEmpty()voidmaintain()Method, that has to be invoked periodically to clean dead keys from the map.Vput(K key, V value)VputIfAbsent(K key, V value)Vremove(java.lang.Object key)booleanremove(java.lang.Object key, java.lang.Object value)Vreplace(K key, V value)booleanreplace(K key, V oldValue, V newValue)intsize()java.util.Collection<V>values()- 
Methods inherited from class java.util.AbstractMapclone, equals, hashCode, keySet, putAll, toString
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 
- 
 
- 
- 
- 
Method Detail- 
maintainpublic void maintain() Method, that has to be invoked periodically to clean dead keys from the map.
 - 
sizepublic int size() 
 - 
isEmptypublic boolean isEmpty() 
 - 
containsValuepublic boolean containsValue(java.lang.Object value) 
 - 
containsKeypublic boolean containsKey(java.lang.Object key) 
 - 
getpublic V get(java.lang.Object key) 
 - 
removepublic V remove(java.lang.Object key) 
 - 
clearpublic void clear() 
 - 
removepublic boolean remove(java.lang.Object key, java.lang.Object value)
 - 
valuespublic java.util.Collection<V> values() 
 
- 
 
-