提交 2ff11b5d 编写于 作者: X xueli.xue

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

- 20、[ING]任务 misfire 策略:忽略、补偿一次、补偿最近10次……等;
上级 4f1c6c7c
......@@ -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;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册