Class OrderedExecutorFactory

  • All Implemented Interfaces:
    ExecutorFactory

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

      • OrderedExecutorFactory

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

      • flushExecutor

        public static boolean flushExecutor​(Executor executor)
      • flushExecutor

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

        public Executor getParent()
        I couldn't figure out how to make a new method to return a generic Actor with a given type
      • isFair

        public boolean isFair()