public final class OrderedExecutorFactory extends Object implements ExecutorFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
OrderedExecutorFactory.OrderedExecutor
An executor that always runs all tasks in order, using a delegate executor to run the tasks.
|
| Constructor and Description |
|---|
OrderedExecutorFactory(Executor parent)
Construct a new instance delegating to the given parent executor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
flushExecutor(Executor executor) |
static boolean |
flushExecutor(Executor executor,
long timeout,
TimeUnit unit) |
Executor |
getExecutor()
Get an executor that always executes tasks in order.
|
public OrderedExecutorFactory(Executor parent)
parent - the parent executorpublic static boolean flushExecutor(Executor executor)
public Executor getExecutor()
getExecutor in interface ExecutorFactoryCopyright © 2018 JBoss by Red Hat. All rights reserved.