Groovy 2.2.0

org.codehaus.groovy.runtime.memoize
[Java] Class UnlimitedConcurrentCache

java.lang.Object
  org.codehaus.groovy.runtime.memoize.UnlimitedConcurrentCache
All Implemented Interfaces:
MemoizeCache

public final class UnlimitedConcurrentCache
extends Object

A cache backed by a ConcurrentHashMap

Authors:
Vaclav Pech


Method Summary
void cleanUpNullReferences()

Replying on the ConcurrentHashMap thread-safe iteration implementation the method will remove all entries holding SoftReferences to gc-evicted objects.

Object get(Object key)

Object put(Object key, Object value)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Method Detail

cleanUpNullReferences

public void cleanUpNullReferences()
Replying on the ConcurrentHashMap thread-safe iteration implementation the method will remove all entries holding SoftReferences to gc-evicted objects.


get

public Object get(Object key)


put

public Object put(Object key, Object value)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.