public abstract class TestCacheLoader<K,V> extends TestCacheCallback implements CacheLoader<K,V>
CacheLoader used in testing. Users should override the "2" method.TestCacheCallback.wasInvoked(),
TestCacheWritercallbackError| Constructor and Description |
|---|
TestCacheLoader() |
| Modifier and Type | Method and Description |
|---|---|
V |
load(LoaderHelper<K,V> helper)
Loads a value.
|
abstract V |
load2(LoaderHelper<K,V> helper) |
close, close2, isClosed, waitForInvocation, waitForInvocation, wasInvokedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseinit, initializepublic V load(LoaderHelper<K,V> helper) throws CacheLoaderException
CacheLoaderRegion.get(Object, Object) that triggered this
load.
load in interface CacheLoader<K,V>helper - a LoaderHelper object that is passed in from cache service and provides access to
the key, region, argument, and netSearch.null causes Region.get(Object, Object) to return
null.CacheLoaderExceptionRegion.getpublic abstract V load2(LoaderHelper<K,V> helper) throws CacheLoaderException
CacheLoaderException