K - the type of keys (and values)public class RecordingCacheLoader<K> extends Object implements CacheLoader<K,K>, AutoCloseable
CacheLoader implementation that:
NullPointerException when an attempt to load a
null key is attempted| Constructor and Description |
|---|
RecordingCacheLoader() |
public Map<K,K> loadAll(Iterable<? extends K> keys)
loadAll in interface CacheLoader<K,K>public int getLoadCount()
public boolean hasLoaded(K key)
key - the keypublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2014. All Rights Reserved.