org.codehaus.gpars

groovyx.gpars.forkjoin
[Java] Class AbstractForkJoinWorker

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.

Authors:
Vaclav Pech Date: Nov 1, 2009


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

children

private java.util.List children


 
Constructor Detail

AbstractForkJoinWorker

protected AbstractForkJoinWorker()


 
Method Detail

compute

@java.lang.Override* @param child The child task
protected final java.lang.Object compute()


computeTask

protected java.lang.Object computeTask()


forkOffChild

protected final void forkOffChild(AbstractForkJoinWorker child)


getChildrenResults

@java.lang.SuppressWarnings
public final java.util.List getChildrenResults()


 

Copyright © 2008–2013 Václav Pech. All Rights Reserved.