Class GridWorkerFuture<T>
- java.lang.Object
-
- org.apache.ignite.internal.util.future.GridFutureAdapter<T>
-
- org.apache.ignite.internal.util.worker.GridWorkerFuture<T>
-
- All Implemented Interfaces:
IgniteInternalFuture<T>
public class GridWorkerFuture<T> extends GridFutureAdapter<T>
Future for locally executed closure that defines cancellation logic.
-
-
Constructor Summary
Constructors Constructor Description GridWorkerFuture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel()Default no-op implementation that always returnsfalse.voidsetWorker(GridWorker w)-
Methods inherited from class org.apache.ignite.internal.util.future.GridFutureAdapter
chain, chain, chain, chain, chainCompose, chainCompose, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, listen, logger, onCancelled, onDone, onDone, onDone, onDone, onDone, reset, result, toString
-
-
-
-
Method Detail
-
cancel
public boolean cancel() throws IgniteCheckedExceptionDefault no-op implementation that always returnsfalse. Futures that do support cancellation should override this method and callGridFutureAdapter.onCancelled()callback explicitly if cancellation indeed did happen.- Specified by:
cancelin interfaceIgniteInternalFuture<T>- Overrides:
cancelin classGridFutureAdapter<T>- Returns:
Trueif future was canceled (i.e. was not finished prior to this call).- Throws:
IgniteCheckedException- If cancellation failed.
-
setWorker
public void setWorker(GridWorker w)
- Parameters:
w- Worker.
-
-