K
- the type of keys (and values)public class RecordingCacheLoader<K> extends Object implements javax.cache.integration.CacheLoader<K,K>, AutoCloseable
CacheLoader
implementation that:
NullPointerException
when an attempt to load a
null
key is attemptedConstructor and Description |
---|
RecordingCacheLoader() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getLoadCount()
Obtain the number of entries that have been loaded.
|
boolean |
hasLoaded(K key)
Determines if the specified key has been loaded by this loader.
|
K |
load(K key) |
Map<K,K> |
loadAll(Iterable<? extends K> keys) |
public int getLoadCount()
public boolean hasLoaded(K key)
key
- the keypublic void close() throws Exception
close
in interface AutoCloseable
Exception
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.