预定义类
产品中已经基于调度模块的相关接口,预先实现了一些类,这些预定义类可供用户进行调度功能的二次开发时直接使用。
继承BaseTask的报表任务类
- 类名:com.runqianapp.schedule.task.ReportTask
 
作用:计算报表运算结果和报表结果的输出。
继承Itest的判断执行类
- 类名:com.runqianapp.schedule.test.TureTest
 
作用:永真判断,永远返回真值,表示任务可以被执行
- 类名:com.runqianapp.schedule.test.RunqianTest
 
作用:用于运算传入的润乾表达式,并返回其结果。
继承ICycle的周期类
- 类名:com.runqianapp.schedule.cycle.OnceCycle
 
作用:任务只执行一次的周期
- 类名:com.runqianapp.schedule.cycle.HourCycle
 
作用:根据当前执行时间,按照每小时执行一次的周期,得到下次执行时间
- 类名:com.runqianapp.schedule.cycle.DayCycle
 
作用:根据当前执行时间,按照每天执行一次的周期,得到下次执行时间
- 类名:com.runqianapp.schedule.cycle.WeekCycle
 
作用:根据当前执行时间,按照每周执行一次的周期,得到下次执行时间
- 类名: com.runqianapp.schedule.cycle.MonthCycle
 
作用:根据当前执行时间,按照每月执行一次的周期,得到下次执行时间
- 类名: com.runqianapp.schedule.cycle.YearCycle
 
作用:根据当前执行时间,按照每年执行一次的周期,得到下次执行时间