Class OrderedExecutor

  • All Implemented Interfaces:
    java.util.concurrent.Executor, ArtemisExecutor

    public class OrderedExecutor
    extends ProcessorBase<java.lang.Runnable>
    implements ArtemisExecutor
    An executor that always runs all tasks in order, using a delegate executor to run the tasks.
    More specifically, any call B to the execute(Runnable) method that happens-after another call A to the same method, will result in B's task running after A's.
    • Constructor Detail

      • OrderedExecutor

        public OrderedExecutor​(java.util.concurrent.Executor delegate)
    • Method Detail

      • doTask

        protected final void doTask​(java.lang.Runnable task)
        Specified by:
        doTask in class ProcessorBase<java.lang.Runnable>
      • execute

        public final void execute​(java.lang.Runnable run)
        Specified by:
        execute in interface java.util.concurrent.Executor
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object