org.codehaus.gpars

groovyx.gpars.forkjoin
[Java] Class FJWorker

java.lang.Object
  jsr166y.RecursiveTask
      groovyx.gpars.forkjoin.AbstractForkJoinWorker
          groovyx.gpars.forkjoin.FJWorker

@java.lang.SuppressWarnings({"MethodOverloadsMethodOfSuperclass", "OverloadedVarargsMethod"})
final class FJWorker
extends AbstractForkJoinWorker

Represents a recursive task for the builder-style fork/join algorithm.

Authors:
Vaclav Pech


Field Summary
static java.lang.Object[] EMPTY_OBJECTS

private java.lang.Object[] args

private groovy.lang.Closure code

 
Fields inherited from class AbstractForkJoinWorker
children
 
Constructor Summary
FJWorker(java.lang.Object... args)

 
Method Summary
protected java.lang.Object computeTask()

void forkOffChild(java.lang.Object... childArgs)

java.lang.Object runChildDirectly(java.lang.Object... childArgs)

 
Methods inherited from class AbstractForkJoinWorker
compute, computeTask, forkOffChild, getChildrenResults
 

Field Detail

EMPTY_OBJECTS

public static final java.lang.Object[] EMPTY_OBJECTS


args

private final java.lang.Object[] args


code

private final groovy.lang.Closure code


 
Constructor Detail

FJWorker

FJWorker(java.lang.Object... args)


 
Method Detail

computeTask

@java.lang.Override
protected java.lang.Object computeTask()


forkOffChild

@java.lang.SuppressWarningsSystem.arraycopy(childArgs, 0, params, 0, childArgs.length);
void forkOffChild(java.lang.Object... childArgs)


runChildDirectly

@java.lang.SuppressWarnings
java.lang.Object runChildDirectly(java.lang.Object... childArgs)


 

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