TaskExecutor implementation that executes each task synchronously
in the calling thread.
Mainly intended for testing scenarios.
Execution in the calling thread does have the advantage of participating
in its thread context, for example the thread context class loader or the
thread's current transaction association. That said, in many cases,
asynchronous execution will be preferable: choose an asynchronous
TaskExecutor instead for such scenarios.
SimpleAsyncTaskExecutor
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | execute(Runnable
the task)Runnable to execute (never null)Implements org. task synchronously, through direct
invocation of it's run() method.
|
| SyncTaskExecutor | back to summary |
|---|---|
| public SyncTaskExecutor() | |
| execute | back to summary |
|---|---|
| public void execute(Runnable task) Implements org. Executes the given
| |