org.logicalcobwebs.concurrent
类 FJTask.Par
java.lang.Object
org.logicalcobwebs.concurrent.FJTask
org.logicalcobwebs.concurrent.FJTask.Par
- 所有已实现的接口:
- Runnable
- 包容类:
- 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.
|
构造方法摘要 |
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. |
| 从类 org.logicalcobwebs.concurrent.FJTask 继承的方法 |
cancel, coInvoke, coInvoke, fork, getFJTaskRunner, getFJTaskRunnerGroup, invoke, isDone, join, par, par, reset, seq, seq, setDone, start, yield |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tasks
protected final FJTask[] tasks
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.
run
public void run()
Copyright © 2014. All rights reserved.