All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gedi.solutions.geode.functions.FuncAssistant Maven / Gradle / Ivy

Go to download

GemFire Enterprise Data Integration - common development extensions powered by Apache Geode

The newest version!
package gedi.solutions.geode.functions;

import org.apache.geode.cache.Region;
import org.apache.geode.cache.execute.RegionFunctionContext;
import org.apache.geode.cache.partition.PartitionRegionHelper;

public class FuncAssistant
{

	public static  Region getLocalPrimaryData(Region region,RegionFunctionContext rfc)
	{
		if(rfc != null && JvmRegionFunctionContext.class.isAssignableFrom(rfc.getClass()))
		{
			return region;
		}
		else
		{
			return PartitionRegionHelper.getLocalPrimaryData(region);
		}
	}
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy