任务定时调度器 redtimer

码农软件 · 软件分类 · 作业/任务调度 · 2019-09-04 05:58:55

软件介绍

redtimer

项目介绍

redtimer是本人纯手工精心编写的一个java任务定时调度器,全部代码均自己编写实现; 功能包含定时和时间解析两部分功能; 编写她的意图,用更少的代码满足自己的业务功能需求,让其他业务代码更佳的随心所欲;

为什么叫red,因为喜欢redkale,所以就加个red开头了,包括其他redbbs,可能以后更多redxxxx项目的产生,(也挺喜欢jfinal的,可能也会起个Jabc,开玩笑的); 项目地址:https://gitee.com/tc608/redtimer

软件架构

安装使用教程

创建启动定时任务

TimerExecutor timerExecutor = new TimerExecutor(1);
Task task1 = new TaskImpl("a1", new ScheduledExpres("1-40 * * * *"));//1-40,定时每分钟执行
Task task2 = new TaskImpl("a1", new ScheduledCycle(1000 * 5));//a2定时每5s执行

timerExecutor.add(task1, task2);//添加任务 task1,task2

支持定时计划修改

//修改a1 每2s执行一次
task.setScheduled(new ScheduledCycle(2000 * 1));
timerExecutor.add(task);

请看测试案例,以及阅读详细源码,所有的代码也就几百行。

本文地址:https://codercto.com/soft/d/13828.html

Rationality for Mortals

Rationality for Mortals

Gerd Gigerenzer / Oxford University Press, USA / 2008-05-02 / USD 65.00

Gerd Gigerenzer's influential work examines the rationality of individuals not from the perspective of logic or probability, but from the point of view of adaptation to the real world of human behavio......一起来看看 《Rationality for Mortals》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具