类 AbstractScheduledTaskJob
java.lang.Object
io.github.mangocrisp.spring.taybct.tool.scheduling.job.AbstractScheduledTaskJob
- 所有已实现的接口:
IScheduledTaskJob
,Runnable
- 直接已知子类:
RedisScheduledTaskJob
任务调度抽象实现
- 从以下版本开始:
- 1.1.0
-
字段概要
字段修饰符和类型字段说明protected String
cron 表达式protected String
任务描述protected String
任务 keyprotected Consumer<com.alibaba.fastjson2.JSONObject>
日志记录器初始化参数protected LocalDateTime
日记记录开始时间protected LocalDateTime
日志记录停止时间 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected Consumer<com.alibaba.fastjson2.JSONObject>
日志记录收集器void
run()
这个 run spring scheduling 会调用void
startRecord
(Consumer<com.alibaba.fastjson2.JSONObject> logRecorder) 开始记录日志void
stopRecord
(Integer status, String message) 结束记录日志void
stopRecord
(Integer status, String message, String exceptionInfo) 结束记录日志从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 io.github.mangocrisp.spring.taybct.tool.scheduling.job.IScheduledTaskJob
run, setCron, setDescription, setKey, setParams
-
字段详细资料
-
key
任务 key -
cron
cron 表达式 -
description
任务描述 -
params
初始化参数 -
startTime
日记记录开始时间 -
stopTime
日志记录停止时间 -
logRecorder
日志记录器
-
-
构造器详细资料
-
AbstractScheduledTaskJob
public AbstractScheduledTaskJob()
-
-
方法详细资料