Package org.axonframework.common
Class DirectExecutor
java.lang.Object
org.axonframework.common.DirectExecutor
- All Implemented Interfaces:
Executor
Simple executor implementation that runs a given Runnable immediately in the calling thread.
- Since:
- 0.7
- Author:
- Allard Buijze
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DirectExecutorReturns a singleton instance of the DirectExecutor. -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes the givencommandimmediately in the current thread.static DirectExecutorinstance()Returns the (singleton) instance of the DirectExecutor
-
Field Details
-
INSTANCE
Returns a singleton instance of the DirectExecutor. Using this constant prevents the creation of unnecessary DirectExecutor instances.
-
-
Method Details