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
-
Method Summary
-
Constructor Details
-
UnlimitedConcurrentCache
public UnlimitedConcurrentCache()
-
-
Method Details
-
put
- Specified by:
put
in interfaceMemoizeCache<Object,
Object>
-
get
- Specified by:
get
in interfaceMemoizeCache<Object,
Object>
-
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:
cleanUpNullReferences
in interfaceMemoizeCache<Object,
Object>
-