You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
5 years ago
|
package com.ruoyi.common.constant;
|
||
|
|
||
|
/**
|
||
|
* 任务调度通用常量
|
||
|
*
|
||
|
* @author ruoyi
|
||
|
*/
|
||
|
public class ScheduleConstants
|
||
|
{
|
||
|
public static final String TASK_CLASS_NAME = "TASK_CLASS_NAME";
|
||
|
|
||
|
/** 执行目标key */
|
||
|
public static final String TASK_PROPERTIES = "TASK_PROPERTIES";
|
||
|
|
||
|
/** 默认 */
|
||
|
public static final String MISFIRE_DEFAULT = "0";
|
||
|
|
||
|
/** 立即触发执行 */
|
||
|
public static final String MISFIRE_IGNORE_MISFIRES = "1";
|
||
|
|
||
|
/** 触发一次执行 */
|
||
|
public static final String MISFIRE_FIRE_AND_PROCEED = "2";
|
||
|
|
||
|
/** 不触发立即执行 */
|
||
|
public static final String MISFIRE_DO_NOTHING = "3";
|
||
|
|
||
|
public enum Status
|
||
|
{
|
||
|
/**
|
||
|
* 正常
|
||
|
*/
|
||
|
NORMAL("0"),
|
||
|
/**
|
||
|
* 暂停
|
||
|
*/
|
||
|
PAUSE("1");
|
||
|
|
||
|
private String value;
|
||
|
|
||
|
private Status(String value)
|
||
|
{
|
||
|
this.value = value;
|
||
|
}
|
||
|
|
||
|
public String getValue()
|
||
|
{
|
||
|
return value;
|
||
|
}
|
||
|
}
|
||
|
}
|