public class TaskDecoratorPlugin extends Object implements TaskAwarePlugin
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
PLUGIN_NAME |
| 构造器和说明 |
|---|
TaskDecoratorPlugin() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDecorator(@NonNull org.springframework.core.task.TaskDecorator decorator)
Add a decorator.
|
Runnable |
beforeTaskExecute(Runnable runnable)
Callback when task is executed.
|
void |
clearDecorators()
Clear all decorators.
|
String |
getId()
Get id.
|
PluginRuntime |
getPluginRuntime()
Get plugin runtime info.
|
void |
removeDecorator(org.springframework.core.task.TaskDecorator decorator)
Remove decorators.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeforeTaskCreate, beforeTaskCreatestart, stoppublic String getId()
getId 在接口中 ThreadPoolPluginpublic Runnable beforeTaskExecute(Runnable runnable)
beforeTaskExecute 在接口中 TaskAwarePluginrunnable - runnableExtensibleThreadPoolExecutor.execute(java.lang.Runnable)public PluginRuntime getPluginRuntime()
getPluginRuntime 在接口中 ThreadPoolPluginpublic void addDecorator(@NonNull
@NonNull org.springframework.core.task.TaskDecorator decorator)
decorator - decoratorpublic void clearDecorators()
public void removeDecorator(org.springframework.core.task.TaskDecorator decorator)
Copyright © 2022. All rights reserved.