public class ZScheduleTaskUtil
extends java.lang.Object
构造器和说明 |
---|
ZScheduleTaskUtil() |
限定符和类型 | 方法和说明 |
---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
getTaskByCustomKeyString(java.lang.String string,
java.lang.String customKeyString) |
static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getTaskMapList() |
static boolean |
isExistTask(java.lang.String uuid)
定时任务是否存在
|
static boolean |
isExistTask(java.lang.String string,
java.lang.String customKeyString)
定时任务是否存在
|
static boolean |
restartScheduleTask(java.lang.String uuid,
java.lang.Runnable runnable,
java.lang.String triggerString)
重新启动/修改参数启动
|
void |
setTaskScheduler() |
static boolean |
startScheduleTask(java.lang.Runnable runnable,
java.lang.String triggerString)
启动任务
|
static boolean |
startScheduleTask(java.lang.Runnable runnable,
java.lang.String triggerString,
java.util.Map<java.lang.String,java.lang.Object> variables)
启动任务
|
static boolean |
startTask(java.lang.Runnable runnable,
java.lang.String triggerString,
java.util.Map<java.lang.String,java.lang.Object> variables) |
static boolean |
stopScheduleTask(java.lang.String uuid)
停止任务
|
public static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getTaskMapList()
@PostConstruct public void setTaskScheduler()
public static boolean isExistTask(java.lang.String uuid)
uuid
- uuidpublic static boolean isExistTask(java.lang.String string, java.lang.String customKeyString)
string
- 值customKeyString
- 自定义字段public static java.util.Map<java.lang.String,java.lang.Object> getTaskByCustomKeyString(java.lang.String string, java.lang.String customKeyString)
public static boolean startScheduleTask(java.lang.Runnable runnable, java.lang.String triggerString)
runnable
- 启动类triggerString
- 触发器字符串public static boolean startScheduleTask(java.lang.Runnable runnable, java.lang.String triggerString, java.util.Map<java.lang.String,java.lang.Object> variables)
runnable
- 启动类triggerString
- 触发器字符串variables
- map参数public static boolean startTask(java.lang.Runnable runnable, java.lang.String triggerString, java.util.Map<java.lang.String,java.lang.Object> variables)
public static boolean stopScheduleTask(java.lang.String uuid)
uuid
- 停止的uuidpublic static boolean restartScheduleTask(java.lang.String uuid, java.lang.Runnable runnable, java.lang.String triggerString)
uuid
- 开始的的Class路径runnable
- 启动器triggerString
- 触发器字符串