|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsr166y.forkjoin.RecursiveTask
groovyx.gpars.forkjoin.AbstractForkJoinWorker
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.Collection |
children
Stores the child workers |
Constructor Summary | |
protected AbstractForkJoinWorker()
|
Method Summary | |
---|---|
protected T
|
compute()
|
protected T
|
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.Collection children
Constructor Detail |
---|
protected AbstractForkJoinWorker()
Method Detail |
---|
@Override protected final T compute()
protected T computeTask()
protected final void forkOffChild(AbstractForkJoinWorker child)
child
- The child task
public final java.util.List getChildrenResults()
Copyright © 2008–2010 Václav Pech. All Rights Reserved.