hengboy / spring-cloud-chapter

Spring Cloud Enterprise Core Technology, Corresponding to the Special Subject Source of the Brief Book "Spring Cloud Core Technology"
14 stars 6 forks source link

分布式任务调度框架ApiBoot Quartz内的两种任务存储方式 - 程序员 - 恒宇少年 | SpringBoot | SpringCloud | Java - 个人博客 #190

Open hengboy opened 4 years ago

hengboy commented 4 years ago

https://blog.yuqiyu.com/apiboot-quartz-job-storage-away.html

前言Quartz是一款比较优秀的分布式任务调度框架,ApiBoot对其封装之前就有两种任务存储方式,分别是:memory(内存方式)、jdbc(数据库方式),不过我们需要编写一些繁琐的代码配置,ApiBoot实现了集成后,可快速应用到项目中,而且还提供了 ApiBootQuartzService 接口用于操作任务的状态、有效性、新任务创建等,提供了一些常用方法,使用时只需要注入即可,因为该类在 A