Class OrderedExecutorFactory

  • All Implemented Interfaces:
    ExecutorFactory

    public final class OrderedExecutorFactory
    extends java.lang.Object
    implements ExecutorFactory
    A factory for producing executors that run all tasks in order, which delegate to a single common executor instance.
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderedExecutorFactory​(java.util.concurrent.Executor parent)
      Construct a new instance delegating to the given parent executor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean flushExecutor​(java.util.concurrent.Executor executor)  
      static boolean flushExecutor​(java.util.concurrent.Executor executor, long timeout, java.util.concurrent.TimeUnit unit)  
      ArtemisExecutor getExecutor()
      Get an executor that always executes tasks in order.
      java.util.concurrent.Executor getParent()
      I couldn't figure out how to make a new method to return a generic Actor with a given type
      • Methods inherited from class java.lang.Object

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

      • OrderedExecutorFactory

        public OrderedExecutorFactory​(java.util.concurrent.Executor parent)
        Construct a new instance delegating to the given parent executor.
        Parameters:
        parent - the parent executor
    • Method Detail

      • flushExecutor

        public static boolean flushExecutor​(java.util.concurrent.Executor executor)
      • flushExecutor

        public static boolean flushExecutor​(java.util.concurrent.Executor executor,
                                            long timeout,
                                            java.util.concurrent.TimeUnit unit)
      • getParent

        public java.util.concurrent.Executor getParent()
        I couldn't figure out how to make a new method to return a generic Actor with a given type