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