java.lang.Object
org.ematgine.utils.concurrent.FJTask
org.ematgine.utils.concurrent.FJTask.Wrap
- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- FJTask
- public static class FJTask.Wrap
- extends FJTask
A FJTask that holds a Runnable r, and calls r.run when executed.
The class is a simple utilty to allow arbitrary Runnables
to be used as FJTasks.
| Fields inherited from class org.ematgine.utils.concurrent.FJTask |
|
|
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 |
runnable
protected final java.lang.Runnable runnable
FJTask.Wrap
public FJTask.Wrap(java.lang.Runnable r)
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.