com.hammurapi.util
Class InlineExecutor

java.lang.Object
  extended by 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

Field Summary
static Executor INSTANCE
          Singleton inline executor.
 
Constructor Summary
InlineExecutor()
           
 
Method Summary
 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