Class OrderedExecutor

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

    public class OrderedExecutor
    extends java.lang.Object
    implements java.util.concurrent.Executor
    Executor that executes tasks in order on a shared thread pool.

    The ordered executor behaves semantically like a single-threaded executor, but multiplexes tasks on a shared thread pool, ensuring blocked threads in the shared thread pool don't block individual ordered executors.

    • Constructor Summary

      Constructors 
      Constructor Description
      OrderedExecutor​(java.util.concurrent.Executor parent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(java.lang.Runnable command)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrderedExecutor

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

      • execute

        public void execute​(java.lang.Runnable command)
        Specified by:
        execute in interface java.util.concurrent.Executor