groovyx.gpars.scheduler
Class FJRunnableTask

java.lang.Object
  extended by jsr166y.forkjoin.ForkJoinTask<java.lang.Void>
      extended by jsr166y.forkjoin.AsyncAction
          extended by groovyx.gpars.scheduler.FJRunnableTask

final class FJRunnableTask
extends jsr166y.forkjoin.AsyncAction

Adapts Runnable instances to the Fork Join framework.

Author:
Vaclav Pech Date: Jun 16, 2009

Field Summary
private  java.lang.Runnable runnable
           
 
Constructor Summary
FJRunnableTask(java.lang.Runnable runnable)
           
 
Method Summary
protected  void compute()
           
 
Methods inherited from class jsr166y.forkjoin.AsyncAction
exec, finish, finish, finishExceptionally, forkJoin, rawResult
 
Methods inherited from class jsr166y.forkjoin.ForkJoinTask
cancel, fork, getException, isCancelled, isDone, isStolen, join, quietlyJoin, reinitialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runnable

private final java.lang.Runnable runnable
Constructor Detail

FJRunnableTask

FJRunnableTask(java.lang.Runnable runnable)
Method Detail

compute

protected void compute()
Specified by:
compute in class jsr166y.forkjoin.AsyncAction

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