- 20、[ING]任务 misfire 策略:忽略、补偿一次、补偿最近10次……等;master
parent
375988fe1c
commit
4f1c6c7c31
4 changed files with 54 additions and 6 deletions
@ -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; |
||||
|
||||
} |
@ -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; |
||||
|
||||
} |
Loading…
Reference in new issue