Files
xservice-quartz/readme.md
2026-01-06 15:30:26 +08:00

48 lines
1012 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Xxz-job任务调度系统
### (一)
### (二)版本控制
#### 1v1.0版本-master分支上
1. 设计Xxz-job注解以及EnableXxzJob注解编写xxz-job注解扫描器以及注解执行器本机单机执行任务。
```java
// 第一版Xxz-job注解内容
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface XxzJob {
/**
* bean的名称
*
* @return
*/
String name();
/**
* cron调度方法
* @return
*/
String cron();
boolean enabled() default true;
/**
* 是否支持多机分布式运行
* 若为false每台机器都会执行一次
* 若为true仅一台机器会执行
*
* @return
*/
boolean distributed() default true;
}
```
第一版XxzJob注解仅支持单机并且cron固定的方式进行设计能够将任务根据cron正常启动。
#### 2v1.1版本-feat/schedule_v1_0106
1. 动态获取定时任务的cron和开关
1.