gedi.solutions.geode.io.GemFireIO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gedi-geode-extensions-core Show documentation
Show all versions of gedi-geode-extensions-core Show documentation
GemFire Enterprise Data Integration - common development extensions powered by Apache Geode
The newest version!
package gedi.solutions.geode.io;
import java.util.ArrayList;
import java.util.Collection;
import org.apache.geode.cache.DataPolicy;
import org.apache.geode.cache.Region;
import org.apache.geode.cache.execute.Execution;
import org.apache.geode.cache.execute.Function;
import org.apache.geode.cache.execute.FunctionException;
import org.apache.geode.cache.execute.ResultCollector;
import org.apache.geode.cache.execute.ResultSender;
import nyla.solutions.core.exception.DataException;
/**
* Utility class for the processing results
* @author Gregory Green
*
*/
public class GemFireIO
{
private GemFireIO()
{
}// --------------------------------------------
/**
* Determine if the data should be sent
* @param resultSender the result sender implementation
* @param data the data
* @return true if data is an exception
*/
public static boolean isErrorAndSendException(ResultSender