Class 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:
    ConcurrentMap<K,​V>, Map<K,​V>

    public class ManagedConcurrentWeakHashMap<K,​V>
    extends AbstractMap<K,​V>
    implements ConcurrentMap<K,​V>
    Concurrent hash map that holds its keys via weak references. Unlike WeakHashMap this class does not handle dead keys during common access operations, but expects you to call its maintain() method periodically. Both keys and values are expected to be not-null.