Class UnlimitedConcurrentCache
java.lang.Object
org.codehaus.groovy.runtime.memoize.UnlimitedConcurrentCache
- All Implemented Interfaces:
MemoizeCache<Object,Object>
A cache backed by a ConcurrentHashMap
- Author:
- Vaclav Pech
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UnlimitedConcurrentCache
public UnlimitedConcurrentCache()
-
-
Method Details
-
put
-
get
-
cleanUpNullReferences
public void cleanUpNullReferences()Replying on the ConcurrentHashMap thread-safe iteration implementation the method will remove all entries holding SoftReferences to gc-evicted objects.- Specified by:
cleanUpNullReferencesin interfaceMemoizeCache<Object,Object>
-