Searches other caches for the value to be loaded.Namespace: GemStone.GemFire.Cache
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
public static IGFSerializable NetSearch( Region region, ICacheableKey key, bool netLoad, IGFSerializable cacheLoaderArg )
|Visual Basic (Declaration)|
Public Shared Function NetSearch ( _ region As Region, _ key As ICacheableKey, _ netLoad As Boolean, _ cacheLoaderArg As IGFSerializable _ ) As IGFSerializable
public: static IGFSerializable^ NetSearch ( Region^ region, ICacheableKey^ key, bool netLoad, IGFSerializable^ cacheLoaderArg )
the region to do the net search on
the key to do the net search for
if true, and there is no valid value found for this entry in the local system, then look for and invoke loaders on other nodes.
passed to netloader if not null, and if there is no valid value found for this entry in the local system, then look for and invoke loaders on other nodes
Return ValueThe value found by the net search operation, or NULL if nothing was found.
If the cache is part of a distributed caching system, 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 locally, 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.