- 19、[ING]任务触发参数优化:支持选择 "Cron触发"、"固定间隔时间触发"、"指定时间点触发"、"不选择" 等;

- 20、[ING]任务 misfire 策略:忽略、补偿一次、补偿最近10次……等;
pull/22/MERGE
xueli.xue 4 years ago
parent 4f1c6c7c31
commit 2ff11b5d3b

@ -15,6 +15,13 @@ public enum MisfireStrategyEnum {
*/
FIRE_ONCE_NOW;
private int value;
public static MisfireStrategyEnum match(String name){
for (MisfireStrategyEnum item: MisfireStrategyEnum.values()) {
if (item.name().equals(name)) {
return item;
}
}
return DO_NOTHING;
}
}

@ -22,4 +22,13 @@ public enum ScheduleTypeEnum {
*/
FIX_DELAY;
public static ScheduleTypeEnum match(String name){
for (ScheduleTypeEnum item: ScheduleTypeEnum.values()) {
if (item.equals(name)) {
return item;
}
}
return NONE;
}
}

Loading…
Cancel
Save