提交 | 用户 | 时间
|
fd2207
|
1 |
package com.jcdm.common.constant; |
懒 |
2 |
|
|
3 |
/** |
|
4 |
* 任务调度通用常量 |
|
5 |
* |
|
6 |
* @author jc |
|
7 |
*/ |
|
8 |
public class ScheduleConstants |
|
9 |
{ |
|
10 |
public static final String TASK_CLASS_NAME = "TASK_CLASS_NAME"; |
|
11 |
|
|
12 |
/** 执行目标key */ |
|
13 |
public static final String TASK_PROPERTIES = "TASK_PROPERTIES"; |
|
14 |
|
|
15 |
/** 默认 */ |
|
16 |
public static final String MISFIRE_DEFAULT = "0"; |
|
17 |
|
|
18 |
/** 立即触发执行 */ |
|
19 |
public static final String MISFIRE_IGNORE_MISFIRES = "1"; |
|
20 |
|
|
21 |
/** 触发一次执行 */ |
|
22 |
public static final String MISFIRE_FIRE_AND_PROCEED = "2"; |
|
23 |
|
|
24 |
/** 不触发立即执行 */ |
|
25 |
public static final String MISFIRE_DO_NOTHING = "3"; |
|
26 |
|
|
27 |
public enum Status |
|
28 |
{ |
|
29 |
/** |
|
30 |
* 正常 |
|
31 |
*/ |
|
32 |
NORMAL("0"), |
|
33 |
/** |
|
34 |
* 暂停 |
|
35 |
*/ |
|
36 |
PAUSE("1"); |
|
37 |
|
|
38 |
private String value; |
|
39 |
|
|
40 |
private Status(String value) |
|
41 |
{ |
|
42 |
this.value = value; |
|
43 |
} |
|
44 |
|
|
45 |
public String getValue() |
|
46 |
{ |
|
47 |
return value; |
|
48 |
} |
|
49 |
} |
|
50 |
} |