com.hammurapi.util
Class InlineExecutor
java.lang.Object
com.hammurapi.util.InlineExecutor
- All Implemented Interfaces:
- Executor
public class InlineExecutor
- extends Object
- implements Executor
Executes command in the current thread.
This class is used by multi-threaded routines when
another implementation of executor is not available to simplify the logic
by not having if (executor==null) branch.
- Author:
- Pavel Vlasov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final Executor INSTANCE
- Singleton inline executor.
InlineExecutor
public InlineExecutor()
execute
public void execute(Runnable command)
- Specified by:
execute in interface Executor