Class ConcurrentCache<K,V>

java.lang.Object
org.eclipse.rdf4j.sail.lmdb.ConcurrentCache<K,V>

public class ConcurrentCache<K,V> extends Object
Limited-size concurrent cache. The actual cleanup to keep the size limited is done once per CLEANUP_INTERVAL invocations of the protected method cleanUp. cleanUp method is called every time by put The maximum size is maintained approximately. Cleanup is not done if size is less than capacity + CLEANUP_INTERVAL / 2.