public interface CenxtTaskListener
void begin(Task task)
task - 任务void finish(Task task, long cost, int retryTimes)
task - 任务cost - 耗时,单位msretryTimes - 重试次数void exceptionFinish(Task task, long cost, int retryTimes)
task - 任务cost - 耗时,单位msretryTimes - 重试次数void fail(Task task, long cost, int times, Exception e)
task - 任务cost - 单次执行耗时,单位mstimes - 执行次数,从1开始e - 异常信息void retry(Task task, int retryTimes)
task - 任务retryTimes - 重试次数,从1开始Copyright © 2022. All rights reserved.