Modifier and Type | Method and Description |
---|---|
Object |
getArgument()
Return the argument object for the load method that was passed in from application code.
|
K |
getKey()
Returns the key for the value being loaded.
|
Region<K,V> |
getRegion()
Returns the region to which the entry belongs.
|
V |
netSearch(boolean doNetLoad)
Searches other caches for the value to be loaded.
|
V netSearch(boolean doNetLoad) throws CacheLoaderException, TimeoutException
netSearch
will try to locate the requested value in any other cache within
the system. If the search is successful, a reference to a local copy of the value is returned.
If there is no value for this entry present in the system, and doNetLoad is true, GemFire looks
for and invokes CacheLoaders
in other nodes in the system. The net load will
invoke one loader at a time until a loader either returns a non-null value or throws an
exception. If the object is not found, null
is returned.doNetLoad
- if true, and there is no valid value found for this entry in the system, then
look for and invoke loaders on other nodesTimeoutException
- if the netSearch times out before getting a response from another
cacheCacheLoaderException
- If netSearch
is attempted on a
local region.K getKey()
load
Region<K,V> getRegion()
load