Class AbstractResultCollector<T,S>
java.lang.Object
org.springframework.geode.function.support.AbstractResultCollector<T,S>
- All Implemented Interfaces:
org.apache.geode.cache.execute.ResultCollector<T,
S>
- Direct Known Subclasses:
SingleResultReturningCollector
public abstract class AbstractResultCollector<T,S>
extends Object
implements org.apache.geode.cache.execute.ResultCollector<T,S>
The
AbstractResultCollector
class is an abstract base implementation of the ResultCollector
interface
encapsulating common functionality for collecting results from a Function execution.- Since:
- 1.0.0
- See Also:
-
ResultCollector
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected boolean
protected boolean
protected TimeUnit
resolveTimeUnit
(TimeUnit unit) protected void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.geode.cache.execute.ResultCollector
addResult
-
Field Details
-
NOT_IMPLEMENTED
- See Also:
-
DEFAULT_TIME_UNIT
-
-
Constructor Details
-
AbstractResultCollector
public AbstractResultCollector()
-
-
Method Details
-
getResult
-
getResult
public S getResult(long duration, TimeUnit unit) throws org.apache.geode.cache.execute.FunctionException, InterruptedException - Specified by:
getResult
in interfaceorg.apache.geode.cache.execute.ResultCollector<T,
S> - Throws:
org.apache.geode.cache.execute.FunctionException
InterruptedException
-
setResult
-
resolveTimeUnit
-
clearResults
public void clearResults() -
endResults
public void endResults() -
hasResultsEnded
protected boolean hasResultsEnded() -
hasResultsNotEnded
protected boolean hasResultsNotEnded()
-