public class CHMCache extends Object implements NodeCache
ConcurrentHashMap
. There's no eviction
policy, it just fills up until reaching the specified capacity (or
close enough at least, bounds check is not atomic :)NodeCache.Loader
public Object get(int key, NodeCache.Loader loader) throws IOException
get
in interface NodeCache
IOException