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

gedi.solutions.geode.functions.JvmResultsSender 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 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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy