public abstract class AbstractForkJoinWorker<T>
extends jsr166y.RecursiveTask<T>
Modifier and Type | Field and Description |
---|---|
private java.util.List<AbstractForkJoinWorker<T>> |
children
Stores the child workers
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractForkJoinWorker() |
Modifier and Type | Method and Description |
---|---|
protected T |
compute() |
protected abstract T |
computeTask() |
protected void |
forkOffChild(AbstractForkJoinWorker<T> child)
Forks a child task.
|
java.util.List<T> |
getChildrenResults()
Waits for and returns the results of the child tasks.
|
adapt, adapt, adapt, cancel, complete, completeExceptionally, fork, get, get, getException, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyInvoke, quietlyJoin, reinitialize, tryUnfork
private java.util.List<AbstractForkJoinWorker<T>> children
protected abstract T computeTask()
protected final void forkOffChild(AbstractForkJoinWorker<T> child)
child
- The child taskpublic final java.util.List<T> getChildrenResults()