Package | Description |
---|---|
org.jboss.threads |
Modifier and Type | Interface and Description |
---|---|
interface |
BlockingExecutorService
A blocking executor service.
|
Modifier and Type | Class and Description |
---|---|
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.
|
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.
|
static BlockingExecutor |
JBossExecutors.protectedBlockingExecutor(BlockingExecutor target) |
static BlockingExecutor |
JBossExecutors.threadFactoryExecutor(ThreadFactory factory)
Create an executor that executes each task in a new thread.
|
static BlockingExecutor |
JBossExecutors.threadFactoryExecutor(ThreadFactory factory,
int maxThreads)
Create an executor that executes each task in a new thread.
|
static BlockingExecutor |
JBossExecutors.threadFactoryExecutor(ThreadFactory factory,
int maxThreads,
boolean blocking)
Create an executor that executes each task in a new thread.
|
static BlockingExecutor |
JBossExecutors.threadFactoryExecutor(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. |
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.