Class ConcurrentCache<K,V>
java.lang.Object
org.eclipse.rdf4j.sail.lmdb.ConcurrentCache<K,V>
Fixed-size concurrent cache with approximate FIFO eviction per hash set. The cache never grows beyond its slot
budget; capacity is rounded up to a power-of-two number of slots and entries are evicted in O(1).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
cache
-
-
Constructor Details
-
ConcurrentCache
public ConcurrentCache(int capacity)
-
-
Method Details
-
get
-
put
-
clear
public void clear() -
onEntryRemoval
- Parameters:
key- the key of the node to test for removal and do finalization on- Returns:
- true if removal is approved
-
cleanUp
protected void cleanUp()
-