Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.ematgine.utils.concurrent
Class FJTask.Par  view FJTask.Par download FJTask.Par.java

java.lang.Object
  extended byorg.ematgine.utils.concurrent.FJTask
      extended byorg.ematgine.utils.concurrent.FJTask.Par
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
FJTask

public static class FJTask.Par
extends FJTask

A new Par, when executed, runs the tasks provided in the constructor in parallel using coInvoke(tasks). The class is a simple utility that makes it easier to create composite FJTasks.


Nested Class Summary
 
Nested classes inherited from class org.ematgine.utils.concurrent.FJTask
FJTask.Par, FJTask.Par2, FJTask.Seq, FJTask.Seq2, FJTask.Wrap
 
Field Summary
protected  FJTask[] tasks
           
 
Fields inherited from class org.ematgine.utils.concurrent.FJTask
 
Constructor Summary
FJTask.Par(FJTask[] tasks)
          Construct a Seq that, when executed, will process each of the tasks in the tasks array in parallel
FJTask.Par(FJTask task1, FJTask task2)
          Two-task constructor, for compatibility with previous release.
 
Method Summary
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 
Methods inherited from class org.ematgine.utils.concurrent.FJTask
cancel, coInvoke, coInvoke, fork, getFJTaskRunner, getFJTaskRunnerGroup, invoke, isDone, join, par, par, reset, seq, seq, setDone, start, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tasks

protected final FJTask[] tasks
Constructor Detail

FJTask.Par

public FJTask.Par(FJTask[] tasks)
Construct a Seq that, when executed, will process each of the tasks in the tasks array in parallel


FJTask.Par

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

Method Detail

run

public void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.