gedi.solutions.geode.functions.JvmResultsSender 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.functions;
import java.util.ArrayList;
import org.apache.geode.cache.execute.ResultSender;
public class JvmResultsSender implements ResultSender
{
public void sendResult(T result)
{
results.add(result);
}//-------------------------------------------------------------------
public void lastResult(T result)
{
results.add(result);
}//-------------------------------------------------------------------
public void sendException(Throwable paramThrowable)
{
throw new RuntimeException(paramThrowable);
}//-------------------------------------------------------------------
/**
* @return the results
*/
public ArrayList getResults()
{
return results;
}
/**
* @param results the results to set
*/
public void setResults(ArrayList results)
{
this.results = results;
}
private ArrayList results = new ArrayList();
}