Package | Description |
---|---|
org.jboss.util.threadpool |
Modifier and Type | Field and Description |
---|---|
static BlockingMode |
BlockingMode.ABORT
Set the policy for blocked execution to be to throw an AbortWhenBlocked
(a subclass of RuntimeException).
|
static BlockingMode |
BlockingMode.DISCARD
Set the policy for blocked execution to be to return without
executing the request.
|
static BlockingMode |
BlockingMode.DISCARD_OLDEST
Set the policy for blocked execution to be to discard the oldest
unhandled request
|
static BlockingMode |
BlockingMode.RUN
Set the policy for blocked execution to be that the current thread
executes the command if there are no available threads in the pool.
|
static BlockingMode |
BlockingMode.WAIT
Set the policy for blocked execution to be to wait until a thread
is available, unless the pool has been shut down, in which case
the action is discarded.
|
Modifier and Type | Method and Description |
---|---|
BlockingMode |
BasicThreadPoolMBean.getBlockingMode() |
BlockingMode |
BasicThreadPool.getBlockingMode() |
static BlockingMode |
BlockingMode.toBlockingMode(String name)
A utility method to convert a string name to a BlockingMode
|
Modifier and Type | Method and Description |
---|---|
void |
BasicThreadPoolMBean.setBlockingMode(BlockingMode mode)
Set the behavior of the pool when a task is added and the queue is full.
|
void |
BasicThreadPool.setBlockingMode(BlockingMode mode) |
Copyright © 2018 JBoss by Red Hat. All rights reserved.