org.codehaus.gpars

groovyx.gpars.forkjoin
[Java] Class FJWorker

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

@SuppressWarnings({"unchecked"})
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

@Override
protected java.lang.Object computeTask()


forkOffChild

@SuppressWarnings({"MethodOverloadsMethodOfSuperclass", "OverloadedVarargsMethod"})
void forkOffChild(java.lang.Object... childArgs)


runChildDirectly

@SuppressWarnings({"MethodOverloadsMethodOfSuperclass", "OverloadedVarargsMethod"})
java.lang.Object runChildDirectly(java.lang.Object... childArgs)


 

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