Class OrderedExecutorFactory
java.lang.Object
org.apache.activemq.artemis.utils.actors.OrderedExecutorFactory
- All Implemented Interfaces:
ExecutorFactory
A factory for producing executors that run all tasks in order, which delegate to a single common executor instance.
-
Constructor Summary
ConstructorsConstructorDescriptionOrderedExecutorFactory(Executor parent) Construct a new instance delegating to the given parent executor. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanflushExecutor(Executor executor) static booleanflushExecutor(Executor executor, long timeout, TimeUnit unit) Get an executor that always executes tasks in order.I couldn't figure out how to make a new method to return a generic Actor with a given typebooleanisFair()setFair(boolean fair)
-
Constructor Details
-
OrderedExecutorFactory
Construct a new instance delegating to the given parent executor.- Parameters:
parent- the parent executor
-
-
Method Details
-
flushExecutor
-
flushExecutor
-
getExecutor
Get an executor that always executes tasks in order.- Specified by:
getExecutorin interfaceExecutorFactory- Returns:
- an ordered 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() -
setFair
-