|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simpleframework.util.thread.DirectExecutor
public class DirectExecutor
The DirectExecutor
object is used for synchronous
execution of tasks. This simple acts as an adapter for running
a Runnable
implementation and can be used wherever
the executor interface is required.
Constructor Summary | |
---|---|
DirectExecutor()
|
Method Summary | |
---|---|
void |
execute(java.lang.Runnable task)
This will execute the provided Runnable within
the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectExecutor()
Method Detail |
---|
public void execute(java.lang.Runnable task)
Runnable
within
the current thread. This implementation will simple invoke
the run method of the task and wait for it to complete.
execute
in interface java.util.concurrent.Executor
task
- this is the task that is to be executed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |