public class DirectExecutor extends Object implements Executor
java.util.Executor reference and instantiate the
appropriate executor subclass which performs either
synchronous or asynchronous execution. The application can
switch between different task execution styles without
changing how it uses the Executor instance.
(Aside: this class should be in java.util.concurrent to provide a complete Executor implementation suite but is not part of the standard Java class library. Hence it being part of the eBus library).
| Constructor and Description |
|---|
DirectExecutor()
Creates a new instance of DirectExecutor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable task)
Immediately executes the task in the current thread.
|
Copyright © 2019. All rights reserved.