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

gedi.solutions.geode.functions.JvmResultCollector 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.concurrent.TimeUnit;

import org.apache.geode.cache.execute.FunctionException;
import org.apache.geode.cache.execute.ResultCollector;
import org.apache.geode.distributed.DistributedMember;

/**
 * @author Gregory Green
 * @param  the input type
 * @param  the output type
 *
 */
public class JvmResultCollector implements ResultCollector
{
	@SuppressWarnings("rawtypes")
	public JvmResultCollector(JvmResultsSender resultSender)
	{
		this.sender = resultSender;
	}//-------------------------------------------------------------------
	
	@SuppressWarnings("unchecked")
	public S getResult() throws FunctionException
	{
		return (S)this.sender.getResults();
	}

	@SuppressWarnings("unchecked")
	public S getResult(long paramLong, TimeUnit paramTimeUnit) throws FunctionException, InterruptedException
	{
		return (S)sender.getResults();
	}

	public void addResult(DistributedMember paramDistributedMember, T paramT)
	{
		
	}

	public void endResults()
	{
		
	}

	public void clearResults()
	{
	}

	@SuppressWarnings("rawtypes")
	private JvmResultsSender sender = new JvmResultsSender();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy