invokeAndWait() semantics.
| Modifier and Type | Field and Description |
|---|---|
| protected final Runnable |
| Access | Constructor and Description |
|---|---|
| public | RunnableTask(final Runnable
The user action runnable, final Object The synchronization object if caller wait until syncObject, final boolean runnable execution is completed,
or null if waiting is not desired.Influence an occurring exception during catchExceptions, final PrintStream runnable execution.
If true, the exception is silenced and can be retrieved via getThrowable(),
otherwise the exception is thrown.If not exceptionOut)null, exceptions are written to this PrintStream.Create a RunnableTask object w/ synchronization, ie. |
| Modifier and Type | Method and Description |
|---|---|
| public final Runnable | |
| public static void | invoke(final boolean waitUntilDone, final Runnable runnable)
Deprecated
Simply invoke
Runnable#run()
|
| public static Thread | invokeOnNewThread(final ThreadGroup tg, final boolean waitUntilDone, final Runnable runnable, final String threadName)
Deprecated
Use
invokeOnNewThread(ThreadGroup, String, boolean, Runnable)
|
| public static RunnableTask | Returns: the newly created and invokedRunnableTaskthe tg, final String ThreadGroup for the new thread, maybe nullthe name for the new thread, maybe threadName, final boolean nullif waitUntilDone, final Runnable true, waits until runnable execution is completed, otherwise returns immediately.the runnable)Runnable to execute on the new thread. If waitUntilDone is true,
the runnable must exit, i.e. not loop forever.Invokes |
| public final void | run()
Implements abstract com. Implements java. |
| runnable | back to summary |
|---|---|
| protected final Runnable runnable | |
| RunnableTask | back to summary |
|---|---|
| public RunnableTask(final Runnable runnable, final Object syncObject, final boolean catchExceptions, final PrintStream exceptionOut) Create a RunnableTask object w/ synchronization,
ie. suitable for
| |
| getRunnable | back to summary |
|---|---|
| public final Runnable getRunnable() Return the user action | |
| invoke | back to summary |
|---|---|
| public static void invoke(final boolean waitUntilDone, final Runnable runnable)
Deprecated Simply invoke | |
| invokeOnNewThread | back to summary |
|---|---|
| public static Thread invokeOnNewThread(final ThreadGroup tg, final boolean waitUntilDone, final Runnable runnable, final String threadName)
Deprecated Use | |
| invokeOnNewThread | back to summary |
|---|---|
| public static RunnableTask invokeOnNewThread(final ThreadGroup tg, final String threadName, final boolean waitUntilDone, final Runnable runnable) Invokes
| |
| run | back to summary |
|---|---|
| public final void run() Implements abstract com. Implements java. Doc from java. Runs this operation.
| |