|
GemFire 6.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LoaderHelper<K,V>
Provides a set of APIs to help the
implementation of the CacheLoader load method. An instance of LoaderHelper
is only valid within the load
method.
load| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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
nodes
TimeoutException - if the netSearch times out before
getting a response from another cache
CacheLoaderException - If netSearch is attempted on a local region.K getKey()
loadRegion<K,V> getRegion()
loadObject getArgument()
get.
|
GemFire 6.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||