|
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.
Field Summary | |
---|---|
private java.util.List |
children
|
Constructor Summary | |
protected AbstractForkJoinWorker()
|
Method Summary | |
---|---|
protected java.lang.Object
|
compute()
|
protected java.lang.Object
|
computeTask()
|
protected void
|
forkOffChild(AbstractForkJoinWorker child)
|
java.util.List
|
getChildrenResults()
|
Field Detail |
---|
private java.util.List children
Constructor Detail |
---|
protected AbstractForkJoinWorker()
Method Detail |
---|
@java.lang.Override* @param child The child task protected final java.lang.Object compute()
protected java.lang.Object computeTask()
protected final void forkOffChild(AbstractForkJoinWorker child)
@java.lang.SuppressWarnings public final java.util.List getChildrenResults()
Copyright © 2008–2013 Václav Pech. All Rights Reserved.