org.logicalcobwebs.concurrent

Class FJTask.Seq

Enclosing Class:
FJTask
Implemented Interfaces:
Runnable

public static class FJTask.Seq
extends FJTask

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

Nested Class Summary

Nested classes/interfaces inherited from class org.logicalcobwebs.concurrent.FJTask

FJTask.Par, FJTask.Par2, FJTask.Seq, FJTask.Seq2, FJTask.Wrap

Field Summary

protected FJTask[]
tasks

Constructor Summary

Seq(FJTask task1, FJTask task2)
Two-task constructor, for compatibility with previous release.
Seq(FJTask[] tasks)
Construct a Seq that, when executed, will process each of the tasks in the tasks array in order

Method Summary

void
run()

Methods inherited from class org.logicalcobwebs.concurrent.FJTask

cancel, coInvoke, coInvoke, fork, getFJTaskRunner, getFJTaskRunnerGroup, invoke, isDone, join, par, par, reset, seq, seq, setDone, start, yield

Field Details

tasks

protected final FJTask[] tasks

Constructor Details

Seq

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

Seq

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

Method Details

run

public void run()