public abstract class AbstractResultCollector<T,S>
extends java.lang.Object
implements org.apache.geode.cache.execute.ResultCollector<T,S>
AbstractResultCollector
class is an abstract base implementation of the ResultCollector
interface
encapsulating common functionality for collecting results from a Function execution.ResultCollector
Modifier and Type | Field and Description |
---|---|
protected static java.util.concurrent.TimeUnit |
DEFAULT_TIME_UNIT |
protected static java.lang.String |
NOT_IMPLEMENTED |
Constructor and Description |
---|
AbstractResultCollector() |
Modifier and Type | Method and Description |
---|---|
void |
clearResults() |
void |
endResults() |
S |
getResult() |
S |
getResult(long duration,
java.util.concurrent.TimeUnit unit) |
protected boolean |
hasResultsEnded() |
protected boolean |
hasResultsNotEnded() |
protected java.util.concurrent.TimeUnit |
resolveTimeUnit(java.util.concurrent.TimeUnit unit) |
protected void |
setResult(S result) |
protected static final java.lang.String NOT_IMPLEMENTED
protected static final java.util.concurrent.TimeUnit DEFAULT_TIME_UNIT
public S getResult() throws org.apache.geode.cache.execute.FunctionException
public S getResult(long duration, java.util.concurrent.TimeUnit unit) throws org.apache.geode.cache.execute.FunctionException, java.lang.InterruptedException
protected void setResult(S result)
protected java.util.concurrent.TimeUnit resolveTimeUnit(java.util.concurrent.TimeUnit unit)
public void clearResults()
public void endResults()
protected boolean hasResultsEnded()
protected boolean hasResultsNotEnded()