|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
R - Type of the task result returning from GridTask.reduce(List) method.public interface GridTaskFuture<R>
This class defines a handler for asynchronous task execution. It's similar in design
to standard JDK Future interface but has improved and easier to use exception
hierarchy.
| Wiki | |
| Forum |

| Method Summary | |
|---|---|
R |
get()
Synchronously waits for completion of the computation and returns computation result. |
R |
get(long timeout)
Synchronously waits for completion of the computation for up to the timeout specified and returns computation result. |
R |
get(long timeout,
TimeUnit unit)
Synchronously waits for completion of the computation for up to the timeout specified and returns computation result. |
GridTaskSession |
getTaskSession()
Gets task session of execution grid task. |
boolean |
isMapped()
Checks if "map" step has completed (which means that GridTask.map(List, Object)
method has finished). |
boolean |
waitForMap()
Waits until GridTask.map(List, Object) method completes. |
boolean |
waitForMap(long timeout)
Waits for a specified timeout in milliseconds for GridTask.map(List, Object)
method to complete. |
boolean |
waitForMap(long timeout,
TimeUnit unit)
Waits for a specified timeout in milliseconds for GridTask.map(List, Object)
method to complete. |
| Methods inherited from interface org.gridgain.grid.GridFuture |
|---|
cancel, concurrentNotify, concurrentNotify, duration, isCancelled, isDone, listenAsync, predicate, startTime, stopListenAsync, syncNotify, syncNotify |
| Methods inherited from interface org.gridgain.grid.GridMetadataAware |
|---|
addMeta, addMetaIfAbsent, addMetaIfAbsent, allMeta, copyMeta, copyMeta, hasMeta, hasMeta, meta, putMetaIfAbsent, putMetaIfAbsent, removeMeta, removeMeta, replaceMeta |
| Methods inherited from interface java.util.concurrent.Callable |
|---|
call |
| Method Detail |
|---|
R get()
throws GridException
get in interface GridFuture<R>GridTaskTimeoutException - If task execution timed out.
GridInterruptedException - Subclass of GridException thrown if the wait was interrupted.
GridFutureCancelledException - Subclass of GridException throws if computation was cancelled.
GridException - If computation failed.
R get(long timeout)
throws GridException
get(long, TimeUnit.MILLISECONDS).
get in interface GridFuture<R>GridTaskTimeoutException - If task execution timed out.
GridInterruptedException - Subclass of GridException thrown if the wait was interrupted.
GridFutureTimeoutException - Subclass of GridException thrown if the wait was timed out.
GridFutureCancelledException - Subclass of GridException throws if computation was cancelled.
GridException - If computation failed.timeout - The maximum time to wait in milliseconds.
R get(long timeout,
TimeUnit unit)
throws GridException
get in interface GridFuture<R>GridTaskTimeoutException - If task execution timed out.
GridInterruptedException - Subclass of GridException thrown if the wait was interrupted.
GridFutureTimeoutException - Subclass of GridException thrown if the wait was timed out.
GridFutureCancelledException - Subclass of GridException throws if computation was cancelled.
GridException - If computation failed.timeout - The maximum time to wait.unit - The time unit of the timeout argument.
GridTaskSession getTaskSession()
boolean isMapped()
GridTask.map(List, Object)
method has finished).
true if map step has completed.
boolean waitForMap()
throws GridException
GridTask.map(List, Object) method completes. This may be useful
when it is desired to know the list of all job siblings for the task, as list
of job siblings gets finalized only after the map step completes.
Note that this method will also return if the task fails.
GridException - If got interrupted while waiting or any other failure.
true if map step has completed, false otherwise.
boolean waitForMap(long timeout)
throws GridException
GridTask.map(List, Object)
method to complete. This may be useful when it is desired to know the list of all
job siblings for the task, as list of job siblings gets finalized only after the map
step completes.
GridException - If got interrupted while waiting or any other failure.timeout - Maximum time to wait.
true if map step has completed, false otherwise.
boolean waitForMap(long timeout,
TimeUnit unit)
throws GridException
GridTask.map(List, Object)
method to complete. This may be useful when it is desired to know the list of all
job siblings for the task, as list of job siblings gets finalized only after the map
step completes.
GridException - If got interrupted while waiting or any other failure.timeout - Maximum time to wait.unit - Time unit for time parameter.
true if map step has completed, false otherwise.
|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
GridGain - Real Time Big Data
|
|
|