public interface TaskListener
Modifier and Type | Method and Description |
---|---|
void |
onFailed(TaskExecutor executor,
Throwable exception)
任务启动失败时触发
|
void |
onStart(TaskExecutor executor)
定时任务启动时触发
|
void |
onSucceeded(TaskExecutor executor)
任务成功结束时触发
|
void onStart(TaskExecutor executor)
executor
- TaskExecutor
void onSucceeded(TaskExecutor executor)
executor
- TaskExecutor
void onFailed(TaskExecutor executor, Throwable exception)
executor
- TaskExecutor
exception
- 异常Copyright © 2024. All rights reserved.