public class RejectedExecutionHandlerFactory extends Object
| 构造器和说明 |
|---|
RejectedExecutionHandlerFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static RejectedExecutionHandler |
newAbort(String source)
拒绝执行,抛出 RejectedExecutionException
|
static RejectedExecutionHandler |
newCallerRun(String source)
调用线程运行
|
static RejectedExecutionHandler |
newDiscard(String source)
直接丢弃该任务
|
static RejectedExecutionHandler |
newThreadRun(String source)
新线程运行
|
public static RejectedExecutionHandler newAbort(String source)
source - name for logpublic static RejectedExecutionHandler newDiscard(String source)
source - log namepublic static RejectedExecutionHandler newCallerRun(String source)
source - log namepublic static RejectedExecutionHandler newThreadRun(String source)
source - log nameCopyright © 2024. All rights reserved.