groovyx.gpars.pa
Class CallAsyncTask<V>

java.lang.Object
  extended by jsr166y.ForkJoinTask<V>
      extended by jsr166y.RecursiveTask<V>
          extended by groovyx.gpars.pa.CallAsyncTask<V>
All Implemented Interfaces:
java.io.Serializable, java.util.concurrent.Future<V>

public final class CallAsyncTask<V>
extends jsr166y.RecursiveTask<V>

A helper class to wrap closures for callAsync on GParsPool

Author:
Vaclav Pech
See Also:
Serialized Form

Field Summary
private  groovy.lang.Closure<V> code
           
 
Constructor Summary
CallAsyncTask(groovy.lang.Closure<V> code)
           
 
Method Summary
protected  V compute()
           
 
Methods inherited from class jsr166y.RecursiveTask
exec, getRawResult, setRawResult
 
Methods inherited from class jsr166y.ForkJoinTask
adapt, adapt, adapt, cancel, complete, completeExceptionally, fork, get, get, getException, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyInvoke, quietlyJoin, reinitialize, tryUnfork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

private final groovy.lang.Closure<V> code
Constructor Detail

CallAsyncTask

public CallAsyncTask(groovy.lang.Closure<V> code)
Method Detail

compute

protected V compute()
Specified by:
compute in class jsr166y.RecursiveTask<V>

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