R
- Type of the task result returning from ComputeTask.reduce(List)
method.public class ComputeTaskInternalFuture<R> extends GridFutureAdapter<R>
Constructor and Description |
---|
ComputeTaskInternalFuture(ComputeTaskSession ses,
GridKernalContext ctx) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel()
Default no-op implementation that always returns
false . |
static <R> ComputeTaskInternalFuture<R> |
finishedFuture(GridKernalContext ctx,
Class<?> taskCls,
IgniteCheckedException e) |
ComputeTaskSession |
getTaskSession()
Gets task timeout.
|
IgniteLogger |
logger() |
ComputeTaskFuture<R> |
publicFuture() |
String |
toString() |
chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, onCancelled, onDone, onDone, onDone, onDone, onDone, reset, result
public ComputeTaskInternalFuture(ComputeTaskSession ses, GridKernalContext ctx)
ses
- Task session instance.ctx
- Kernal context.public static <R> ComputeTaskInternalFuture<R> finishedFuture(GridKernalContext ctx, Class<?> taskCls, IgniteCheckedException e)
ctx
- Context.taskCls
- Task class.e
- Error.public ComputeTaskFuture<R> publicFuture()
public ComputeTaskSession getTaskSession()
public boolean cancel() throws IgniteCheckedException
false
.
Futures that do support cancellation should override this method
and call GridFutureAdapter.onCancelled()
callback explicitly if cancellation
indeed did happen.cancel
in interface IgniteInternalFuture<R>
cancel
in class GridFutureAdapter<R>
True
if future was canceled (i.e. was not finished prior to this call).IgniteCheckedException
- If cancellation failed.public String toString()
toString
in class GridFutureAdapter<R>
public IgniteLogger logger()
logger
in class GridFutureAdapter<R>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.13.0 Release Date : April 20 2022