public class TaskRejectCountRecordPlugin extends Object implements RejectedAwarePlugin
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
PLUGIN_NAME |
| 构造器和说明 |
|---|
TaskRejectCountRecordPlugin() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
beforeRejectedExecution(Runnable r,
ThreadPoolExecutor executor)
Record rejection count.
|
String |
getId()
Get id.
|
PluginRuntime |
getPluginRuntime()
Get plugin runtime info.
|
Long |
getRejectCountNum()
Get reject count num.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstart, stoppublic String getId()
getId 在接口中 ThreadPoolPluginpublic PluginRuntime getPluginRuntime()
getPluginRuntime 在接口中 ThreadPoolPluginpublic void beforeRejectedExecution(Runnable r, ThreadPoolExecutor executor)
beforeRejectedExecution 在接口中 RejectedAwarePluginr - taskexecutor - executorpublic Long getRejectCountNum()
Copyright © 2022. All rights reserved.