Module org.autogui
Package org.autogui.base.mapping
Class GuiMappingContext.ContextExecutorForkJoinTask<V>
java.lang.Object
java.util.concurrent.ForkJoinTask<V>
org.autogui.base.mapping.GuiMappingContext.ContextExecutorForkJoinTask<V>
- Type Parameters:
V
- the returning type of the task
- All Implemented Interfaces:
Serializable
,Runnable
,Future<V>
,RunnableFuture<V>
- Enclosing class:
GuiMappingContext
public static class GuiMappingContext.ContextExecutorForkJoinTask<V>
extends ForkJoinTask<V>
implements RunnableFuture<V>
a task wrapper for
GuiMappingContext.ContextExecutorServiceForkJoin
,
which enables to interrupt tasks by cancel(boolean)
- Since:
- 1.2
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.concurrent.ForkJoinTask
adapt, adapt, adapt, adaptInterruptible, compareAndSetForkJoinTaskTag, complete, completeExceptionally, exceptionNow, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollSubmission, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, quietlyJoin, quietlyJoinUninterruptibly, reinitialize, resultNow, setForkJoinTaskTag, state, tryUnfork
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, get, get, isCancelled, isDone, resultNow, state
-
Field Details
-
task
-
value
-
runnerThread
-
-
Constructor Details
-
ContextExecutorForkJoinTask
-
-
Method Details
-
getRawResult
- Specified by:
getRawResult
in classForkJoinTask<V>
-
setRawResult
- Specified by:
setRawResult
in classForkJoinTask<V>
-
run
public void run()- Specified by:
run
in interfaceRunnable
- Specified by:
run
in interfaceRunnableFuture<V>
-
exec
protected boolean exec()- Specified by:
exec
in classForkJoinTask<V>
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
toString
-