Class WeakIdentityConcurrentMap<K,​V>

  • Type Parameters:
    K - The key type
    V - The value type

    public final class WeakIdentityConcurrentMap<K,​V>
    extends java.lang.Object
    A poor man's implementation of a WeakIdentityConcurrentMap to hold the CacheManager associated ExecutorServices
    Author:
    Alex Snaps
    • Constructor Detail

      • WeakIdentityConcurrentMap

        public WeakIdentityConcurrentMap()
        Constructor
    • Method Detail

      • put

        public V put​(K key,
                     V value)
        Puts into the underlying
        Parameters:
        key -
        value -
        Returns:
      • remove

        public V remove​(K key)
        Remove from the underlying
        Parameters:
        key -
        Returns:
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • putIfAbsent

        public V putIfAbsent​(K key,
                             V value)
        Puts into the underlying
        Parameters:
        key -
        value -
        Returns:
      • get

        public V get​(K key)
        Parameters:
        key -
        Returns:
      • cleanUp

        public void cleanUp()
      • keySet

        public java.util.Set<K> keySet()
        Returns: