R - Type of the task result returning from ComputeTask.reduce(List) method.public class ComputeTaskInternalFuture<R> extends GridFutureAdapter<R>
AbstractQueuedSynchronizer.ConditionObjectlog| Constructor and Description |
|---|
ComputeTaskInternalFuture()
Required by
Externalizable. |
ComputeTaskInternalFuture(ComputeTaskSession ses,
GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Default no-op implementation that always returns
false. |
boolean |
cancelOnMasterLeave()
Cancel task on master leave event.
|
static <R> ComputeTaskInternalFuture<R> |
finishedFuture(GridKernalContext ctx,
Class<?> taskCls,
IgniteCheckedException e) |
ComputeTaskSession |
getTaskSession()
Gets task timeout.
|
ComputeTaskFuture<R> |
publicFuture() |
String |
toString() |
chain, checkValid, concurrentNotify, concurrentNotify, duration, endTime, error, get, get, get, get0, isCancelled, isDone, isFailed, isValid, listenAsync, onCancelled, onDone, onDone, onDone, onDone, readExternal, result, startTime, stopListenAsync, syncNotify, syncNotify, tryAcquireShared, tryReleaseShared, writeExternalacquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryReleasegetExclusiveOwnerThread, setExclusiveOwnerThreadpublic ComputeTaskInternalFuture()
Externalizable.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 boolean cancelOnMasterLeave()
throws IgniteCheckedException
True if future was cancelled (i.e. was not finished prior to this call).IgniteCheckedException - If failed.public String toString()
toString in class GridFutureAdapter<R>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015