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

gedi.solutions.geode.io.LastResultTransporter Maven / Gradle / Ivy

Go to download

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

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

import java.io.Serializable;

import org.apache.geode.cache.execute.ResultSender;

/**
 * Implementation of the Result Transporter to send the last results
 * @author Gregory Green
 */
public class LastResultTransporter implements ResultTransporter
{
	/**
	 * Calls the ResultSender's lastResult method
	 * @param resultSender Gemfire result sender
	 * @param data the data used to send
	 */
	//@Override
	public void send(ResultSender resultSender, Object data)
	{
		
		if(!GemFireIO.isErrorAndSendException(resultSender,data))
		{
			resultSender.lastResult((Serializable)data);	
		}		
	}// --------------------------------------------
	

}