Class ObjectCache<K,V>

java.lang.Object
is.galia.util.ObjectCache<K,V>

public final class ObjectCache<K,V> extends Object
Size-bounded heap cache.
  • Constructor Details

    • ObjectCache

      public ObjectCache(long maxSize)
      Creates an instance with the given max size.
  • Method Details

    • asMap

      public ConcurrentMap<K,V> asMap()
    • cleanUp

      public void cleanUp()
    • get

      public V get(K key)
    • maxSize

      public long maxSize()
    • purge

      public void purge()
    • put

      public void put(K key, V value)
    • remove

      public void remove(K key)
    • removeAll

      public void removeAll()
    • size

      public long size()