groovyx.gpars.forkjoin
Class ForkJoinUtils

java.lang.Object
  extended by groovyx.gpars.forkjoin.ForkJoinUtils

public abstract class ForkJoinUtils
extends java.lang.Object

Author:
Vaclav Pech

Constructor Summary
private ForkJoinUtils()
           
 
Method Summary
static
<T> T
runForkJoin(jsr166y.ForkJoinPool pool, jsr166y.ForkJoinTask<T> rootWorker)
           
static
<T> T
runForkJoin(jsr166y.ForkJoinPool pool, java.lang.Object... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForkJoinUtils

private ForkJoinUtils()
Method Detail

runForkJoin

public static <T> T runForkJoin(jsr166y.ForkJoinPool pool,
                                jsr166y.ForkJoinTask<T> rootWorker)
                     throws java.util.concurrent.ExecutionException,
                            java.lang.InterruptedException
Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException

runForkJoin

public static <T> T runForkJoin(jsr166y.ForkJoinPool pool,
                                java.lang.Object... args)
                     throws java.util.concurrent.ExecutionException,
                            java.lang.InterruptedException
Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException

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