Class OrderedExecutorFactory
- java.lang.Object
-
- org.apache.activemq.artemis.utils.actors.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 booleanflushExecutor(java.util.concurrent.Executor executor)static booleanflushExecutor(java.util.concurrent.Executor executor, long timeout, java.util.concurrent.TimeUnit unit)ArtemisExecutorgetExecutor()Get an executor that always executes tasks in order.java.util.concurrent.ExecutorgetParent()I couldn't figure out how to make a new method to return a generic Actor with a given type
-
-
-
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)
-
getExecutor
public ArtemisExecutor getExecutor()
Get an executor that always executes tasks in order.- Specified by:
getExecutorin interfaceExecutorFactory- Returns:
- an ordered executor
-
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
-
-