com.hammurapi.common

## Class InlineExecutor

- java.lang.Object
- - com.hammurapi.common.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.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static Executor` | `INSTANCE` Singleton inline executor.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `InlineExecutor()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `execute(Runnable command)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### INSTANCE

          public static final Executor INSTANCE

      Singleton inline executor.

  - ### Constructor Detail

    - #### InlineExecutor

          public InlineExecutor()

  - ### Method Detail

    - #### execute

          public void execute(Runnable command)

      Specified by:
        `execute` in interface `Executor`