Package org.apache.ignite.compute
Interface ComputeTaskFuture<R>
- 
- Type Parameters:
- R- Type of the task result returning from- ComputeTask.reduce(List)method.
 - All Superinterfaces:
- IgniteFuture<R>
 
 public interface ComputeTaskFuture<R> extends IgniteFuture<R> This class defines a handler for asynchronous task execution. It's similar in design to standard JDKFutureinterface but has improved and easier to use exception hierarchy.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Rget()Synchronously waits for completion of the computation and returns computation result.Rget(long timeout, TimeUnit unit)Synchronously waits for completion of the computation for up to the timeout specified and returns computation result.ComputeTaskSessiongetTaskSession()Gets task session of execution grid task.- 
Methods inherited from interface org.apache.ignite.lang.IgniteFuturecancel, chain, chainAsync, get, isCancelled, isDone, listen, listenAsync
 
- 
 
- 
- 
- 
Method Detail- 
getR get() Synchronously waits for completion of the computation and returns computation result.- Specified by:
- getin interface- IgniteFuture<R>
- Returns:
- Computation result.
- Throws:
- ComputeTaskTimeoutException- If task execution timed out.
 
 - 
getR get(long timeout, TimeUnit unit) Synchronously waits for completion of the computation for up to the timeout specified and returns computation result.- Specified by:
- getin interface- IgniteFuture<R>
- Parameters:
- timeout- The maximum time to wait.
- unit- The time unit of the- timeoutargument.
- Returns:
- Computation result.
- Throws:
- ComputeTaskTimeoutException- If task execution timed out.
 
 - 
getTaskSessionComputeTaskSession getTaskSession() Gets task session of execution grid task.- Returns:
- Task session.
 
 
- 
 
-