任务定时调度器 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

The Sovereign Individual

The Sovereign Individual

James Dale Davidson、William Rees-Mogg / Free Press / 1999-08-26 / USD 16.00

Two renowned investment advisors and authors of the bestseller The Great Reckoning bring to light both currents of disaster and the potential for prosperity and renewal in the face of radical changes ......一起来看看 《The Sovereign Individual》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试