当前位置:网站首页>Quartz trigger rule
Quartz trigger rule
2022-07-26 17:57:00 【2022 Java interview classic】
The order :[ second ][ branch ][ Hours ][ Japan ][ month ][ Zhou ][ year ]
Serial number explain If required Allowed values Wildcards allowed
1 second yes 0-59 , - * /
2 branch yes 0-59 , - * /
3 when yes 0-23 , - * /
4 Japan yes 1-31 , - * ? / L W
5 month yes 1-12(JAN-DEC) , - * /
6 Zhou yes 1-7(SUN-SAT) , - * ? / L #
7 year no empty(1970-2099) , - * /
// Explanation of meaning
All values , Such as : Set on the field of points "“, Indicates that every minute triggers
? Indicates that no value is specified , That is, you don't need to care about the value of the current setting field , Such as 0 0 0 10 * ?, Express : monthly 10 Set out on , Don't care about Zhou
- Indicates the interval , That is, the scope is as follows : Set on hours “10-12" Express 10,11,12 Points will trigger
, Indicates specifying multiple values, such as : Set “MON,WED,FRI" It means Monday , Wednesday , Friday trigger
/ Used for incremental triggering, such as : If set above seconds "5/15" From 5 Seconds to start , Every increase 15 Seconds trigger that (5,20,35,50) Trigger when , If you set "1/3" Means every month 1 The start , Trigger every three days
L Said the last , If the day field is set to indicate : Represents the last day of the month , If the week field is set to indicate : Saturday ( The digital 7 or SAT), If in "L" Add the number before , It means the last , For example, set in the week field "6L”, It means the last Friday of this month
W Represents the working day closest to the specified date ( Monday to Friday ), For example, set "15W" It means every month 15 The most recent working day of the , if 15 It happens to be a working day, which triggers , if "1W”, Means every month 1 The most recent working day after the
LW Express L and W Combined use of , If you set "LW”, It means on the last working day of this month
# Indicates the day of the week of the month , Such as : Set 6#3 Express : Every month 3 Next Friday
Common examples
0 0 12 * * ? // Every day 12 Some trigger
0 15 10 ? * * // Every day 10 spot 15 Points to trigger
0 15 10 * * ? // Every day 10 spot 15 Points to trigger
0 15 10 * * ? * // Every day 10 spot 15 Points to trigger
0 15 10 * * ? 2005 // 2005 Every day in 10 spot 15 Points to trigger
0 * 14 * * ? // Every afternoon 2 Point to 2 spot 59 Every minute triggers
0 0/5 14 * * ? // Every afternoon 2 Point to 2 spot 59 branch ( It starts on the hour , every other 5 Trigger once per minute )
0 0/5 14,18 * * ? // Every afternoon 2 Point to 2 spot 59 branch ( It starts on the hour , every other 5 Trigger once per minute )+ Every afternoon 18 Point to 18 spot 59 branch ( It starts on the hour , every other 5 Trigger once per minute )
0 0-5 14 * * ? // Every afternoon 2 Point to 2 spot 05 Every minute triggers
0 10,44 14 ? 3 WED // Every year, 3 Every Wednesday afternoon in the month 2 spot 10 Points and 2 spot 44 Points to trigger
0 15 10 ? * MON-FRI // Every morning from Monday to Friday 10 spot 15 Points to trigger
0 15 10 15 * ? // monthly 15 morning 10 spot 15 Points to trigger
0 15 10 L * ? // On the last day of each month 10 spot 15 Points to trigger
0 15 10 ? * 6L // On the Friday of the last week of every month 10 spot 15 Points to trigger
0 15 10 ? * 6L 2002-2005 // 2002 Year to 2005 On the Friday of the last week of each month 10 spot 15 Points to trigger
0 15 10 ? * 6#3 // On the Friday of the third week of each month 10 spot 15 Points to trigger
0 0 12 1/5 * ? // Every... From the first noon of every month 5 Once a day
0 11 11 11 11 ? // From year to year 11 month 11 Number 11 spot 11 Points to trigger ( Singles Day )
15 0/2 * * * ? // Every day from the whole hour every 2 Minutes of 15 Triggered in seconds
边栏推荐
- CCS tm4c123 new project
- 9、 Alternative implementation of client for service communication
- Spark数据格式UnsafeRow
- [virtual machine data recovery] data recovery cases in which XenServer virtual machine is unavailable due to accidental power failure and virtual disk files are lost
- AI遮天传 DL-回归与分类
- VS Code 格式化后 自动让函数名后有空格
- Asemi rectifier bridge kbpc3510, kbpc3510 package, kbpc3510 application
- 中国聚异丁烯市场研究与投资价值报告(2022版)
- 6-19 vulnerability exploitation -nsf to obtain the target password file
- Definition of graph traversal and depth first search and breadth first search (I)
猜你喜欢

ACL实验演示(Huawei路由器设备配置)
![[metauniverse OMI theory] analyze Web3 risk challenges and build Web3 ecological security](/img/d1/4a424d810f7a6aaccae80b4fe232c0.png)
[metauniverse OMI theory] analyze Web3 risk challenges and build Web3 ecological security

【集训Day1】Spy dispatch

Coscon'22 city / school / institution producer solicitation order

5、 Parameter server principle, code implementation

【元宇宙欧米说】剖析 Web3 风险挑战,构筑 Web3 生态安全

Interview with celebrities | open source is a double-edged sword for security -- Wei Jianfan, author of the Chinese translation of cathedral and market
![[training day3] section](/img/f6/6f679375a00c6cce569c102371e9ff.png)
[training day3] section

【数字IC】深入浅出理解AXI-Lite协议

How to assemble a registry?
随机推荐
【数字IC】深入浅出理解AXI-Lite协议
[training Day1] Dwaves line up
[training day3] delete
【集训Day2】cinema ticket
Linux安装mysql8.0.29详细教程
9、 Alternative implementation of client for service communication
hosts该文件已设置为只读的解决方法
天翼云Web应用防火墙(边缘云版)支持检测和拦截Apache Spark shell命令注入漏洞
[training Day2] torchbearer
2、 Topic communication principle, code implementation
深度学习实验:Softmax实现手写数字识别
Come on developer! Not only for the 200000 bonus, try the best "building blocks" for a brainstorming
老子云携手福昕鲲鹏,首次实现3D OFD三维版式文档的重大突破
COSCon'22城市/学校/机构出品人征集令
2.1.2 同步始终失败
RedisDesktopManager去除升级提示
基本的SELECT语句
徽商期货网上开户安全吗?开户办理流程是怎样的?
JS 函数作用域 变量声明提升 作用域链 不加var的变量,是全局变量
JS function scope variables declare that the variables that promote the scope chain without VaR are global variables