| Package | Description |
|---|---|
| org.jboss.threads |
| Modifier and Type | Interface and Description |
|---|---|
interface |
BlockingExecutorService
A blocking executor service.
|
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
DelegatingBlockingExecutor
An executor that simply delegates to another executor.
|
(package private) class |
DelegatingBlockingExecutorService |
(package private) class |
DelegatingDirectBlockingExecutor |
class |
JBossThreadPoolExecutor |
class |
OrderedExecutor
An executor that always runs all tasks in queue order, using a delegate executor to run the tasks.
|
class |
QueueExecutor
An executor which uses a regular queue to hold tasks.
|
class |
QueuelessExecutor
A queueless thread pool.
|
(package private) class |
ThreadFactoryExecutor |
| Modifier and Type | Field and Description |
|---|---|
private static BlockingExecutor |
JBossExecutors.BLOCKING_DIRECT_EXECUTOR |
private static BlockingExecutor |
JBossExecutors.BLOCKING_DISCARDING_EXECUTOR |
private static BlockingExecutor |
JBossExecutors.BLOCKING_REJECTING_EXECUTOR |
private BlockingExecutor |
DelegatingBlockingExecutor.delegate |
private BlockingExecutor |
DelegatingBlockingExecutorService.delegate |
| Modifier and Type | Method and Description |
|---|---|
static BlockingExecutor |
JBossExecutors.blockingDirectExecutor()
Get an executor which executes tasks in the current thread, which implements
BlockingExecutor. |
static BlockingExecutor |
JBossExecutors.blockingDiscardingExecutor()
Get an executor which discards all tasks, which implements
BlockingExecutor. |
static BlockingExecutor |
JBossExecutors.blockingRejectingExecutor()
Get an executor which rejects all tasks, which implements
BlockingExecutor. |
static BlockingExecutor |
JBossExecutors.directBlockingExecutor(DirectExecutor delegate)
An executor which delegates to the given direct executor, but implements the blocking executor interface.
|
protected BlockingExecutor |
DelegatingBlockingExecutor.getDelegate() |
static BlockingExecutor |
JBossExecutors.protectedBlockingExecutor(BlockingExecutor target) |
static BlockingExecutor |
JBossExecutors.threadFactoryExecutor(java.util.concurrent.ThreadFactory factory)
Create an executor that executes each task in a new thread.
|
static BlockingExecutor |
JBossExecutors.threadFactoryExecutor(java.util.concurrent.ThreadFactory factory,
int maxThreads)
Create an executor that executes each task in a new thread.
|
static BlockingExecutor |
JBossExecutors.threadFactoryExecutor(java.util.concurrent.ThreadFactory factory,
int maxThreads,
boolean blocking)
Create an executor that executes each task in a new thread.
|
static BlockingExecutor |
JBossExecutors.threadFactoryExecutor(java.util.concurrent.ThreadFactory factory,
int maxThreads,
boolean blocking,
DirectExecutor taskExecutor)
Create an executor that executes each task in a new thread.
|
| Modifier and Type | Method and Description |
|---|---|
static BlockingExecutor |
JBossExecutors.protectedBlockingExecutor(BlockingExecutor target) |
static BlockingExecutorService |
JBossExecutors.protectedBlockingExecutorService(BlockingExecutor target)
Wrap a blocking executor with an
BlockingExecutorService instance which supports all the features of
BlockingExecutorService except for shutting down the executor. |
| Constructor and Description |
|---|
DelegatingBlockingExecutor(BlockingExecutor delegate) |
DelegatingBlockingExecutorService(BlockingExecutor delegate) |