|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsr166y.RecursiveTask groovyx.gpars.forkjoin.AbstractForkJoinWorker
public abstract class AbstractForkJoinWorker extends RecursiveTask
Implements the ForkJoin worker contract. Subclasses need to implement the compute() to perform the actual Fork/Join algorithm leveraging the options provided by the AbstractForkJoinWorker class. The AbstractForJoinWorker class takes care of the child sub-processes.
Author: Vaclav Pech Date: Nov 1, 2009Field Summary | |
---|---|
private java.util.List |
children
Stores the child workers |
Constructor Summary | |
protected AbstractForkJoinWorker()
|
Method Summary | |
---|---|
protected java.lang.Object
|
compute()
|
protected java.lang.Object
|
computeTask()
|
protected void
|
forkOffChild(AbstractForkJoinWorker child)
Forks a child task. |
java.util.List
|
getChildrenResults()
Waits for and returns the results of the child tasks. |
Field Detail |
---|
private java.util.List children
Constructor Detail |
---|
protected AbstractForkJoinWorker()
Method Detail |
---|
@Override protected final java.lang.Object compute()
protected java.lang.Object computeTask()
protected final void forkOffChild(AbstractForkJoinWorker child)
child
- The child task
@SuppressWarnings({"unchecked"}) public final java.util.List getChildrenResults()
Copyright © 2008–2012 Václav Pech. All Rights Reserved.