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