public final class UnlimitedConcurrentCache extends Object
A cache backed by a ConcurrentHashMap
Type Params | Return Type | Name and description |
---|---|---|
|
void |
cleanUpNullReferences() Replying on the ConcurrentHashMap thread-safe iteration implementation the method will remove all entries holding SoftReferences to gc-evicted objects. |
|
V |
get(K key) |
|
V |
getAndPut(K key, ValueProvider<? super K, ? extends V> valueProvider) The implementation of `getAndPut` is not atomic |
|
V |
put(K key, V value) |
Replying on the ConcurrentHashMap thread-safe iteration implementation the method will remove all entries holding SoftReferences to gc-evicted objects.
The implementation of `getAndPut` is not atomic