org.metasyntactic.thread.concurrent
Class ForkJoinTask.Sequence

java.lang.Object
  |
  +--org.metasyntactic.thread.concurrent.ForkJoinTask
        |
        +--org.metasyntactic.thread.concurrent.ForkJoinTask.Sequence
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ForkJoinTask

public static class ForkJoinTask.Sequence
extends ForkJoinTask

A new Sequence, when executed, invokes each task provided in the constructor, in order. The class is a simple utility that makes it easier to create composite ForkJoinTasks.


Nested Class Summary
 
Nested classes inherited from class org.metasyntactic.thread.concurrent.ForkJoinTask
ForkJoinTask.Parallel, ForkJoinTask.Sequence, ForkJoinTask.Wrap
 
Constructor Summary
ForkJoinTask.Sequence(ForkJoinTask[] tasks)
          Construct a Seq that, when executed, will process each of the tasks in the tasks array in order
ForkJoinTask.Sequence(ForkJoinTask task1, ForkJoinTask task2)
          Two-task constructor, for compatibility with previous release.
 
Method Summary
 void run()
           
 
Methods inherited from class org.metasyntactic.thread.concurrent.ForkJoinTask
cancel, coInvoke, coInvoke, fork, getForkJoinTaskRunner, getForkJoinTaskRunnerGroup, invoke, isDone, join, parallel, reset, sequence, setDone, start, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForkJoinTask.Sequence

public ForkJoinTask.Sequence(ForkJoinTask[] tasks)
Construct a Seq that, when executed, will process each of the tasks in the tasks array in order

Parameters:
tasks -

ForkJoinTask.Sequence

public ForkJoinTask.Sequence(ForkJoinTask task1,
                             ForkJoinTask task2)
Two-task constructor, for compatibility with previous release.

Parameters:
task1 -
task2 -
Method Detail

run

public void run()