forked from xuxueli/xxl-job
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 19、[ING]任务触发参数优化:支持选择 "Cron触发"、"固定间隔时间触发"、"指定时间点触发"、"不选择" 等;
- 20、[ING]任务 misfire 策略:忽略、补偿一次、补偿最近10次……等;
- Loading branch information
xueli.xue
committed
Oct 29, 2020
1 parent
375988f
commit 4f1c6c7
Showing
4 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
xxl-job-admin/src/main/java/com/xxl/job/admin/core/scheduler/MisfireStrategyEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.xxl.job.admin.core.scheduler; | ||
|
||
/** | ||
* @author xuxueli 2020-10-29 21:11:23 | ||
*/ | ||
public enum MisfireStrategyEnum { | ||
|
||
/** | ||
* do nothing | ||
*/ | ||
DO_NOTHING, | ||
|
||
/** | ||
* fire once now | ||
*/ | ||
FIRE_ONCE_NOW; | ||
|
||
private int value; | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
xxl-job-admin/src/main/java/com/xxl/job/admin/core/scheduler/ScheduleTypeEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.xxl.job.admin.core.scheduler; | ||
|
||
/** | ||
* @author xuxueli 2020-10-29 21:11:23 | ||
*/ | ||
public enum ScheduleTypeEnum { | ||
|
||
NONE, | ||
|
||
/** | ||
* schedule by cron | ||
*/ | ||
CRON, | ||
|
||
/** | ||
* schedule by fixed rate (in seconds) | ||
*/ | ||
FIX_RATE, | ||
|
||
/** | ||
* schedule by fix delay (in seconds), after the last time | ||
*/ | ||
FIX_DELAY; | ||
|
||
} |