| 程序包 | 说明 |
|---|---|
| com.jn.langx.util.concurrent |
| 限定符和类型 | 字段和说明 |
|---|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static BlockingMode |
BlockingMode.toBlockingMode(String name)
A utility method to convert a string name to a BlockingMode
|
Copyright © 2022. All rights reserved.