java.lang.Object
org.ematgine.utils.concurrent.FJTask
org.ematgine.utils.concurrent.FJTaskRunnerGroup.InvokableFJTask
- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- FJTaskRunnerGroup
- protected static final class FJTaskRunnerGroup.InvokableFJTask
- extends FJTask
Wrap wait/notify mechanics around a task so that
invoke() can wait it out
| Fields inherited from class org.ematgine.utils.concurrent.FJTask |
|
|
Method Summary |
protected void |
awaitTermination()
|
void |
run()
This method will be called by whoever wishes to run your class
implementing Runnable. |
protected void |
setTerminated()
|
| 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 |
wrapped
protected final java.lang.Runnable wrapped
terminated
protected boolean terminated
FJTaskRunnerGroup.InvokableFJTask
protected FJTaskRunnerGroup.InvokableFJTask(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.
setTerminated
protected void setTerminated()
awaitTermination
protected void awaitTermination()
throws java.lang.InterruptedException