批注接口 JobDefinition
job 定时任务定义
- 版本:
- $Id: $Id
- 作者:
- zhanglinfeng
-
必需元素概要
所需元素 -
可选元素概要
可选元素修饰符和类型可选元素说明任务参数boolean是否并行处理 false 则为串行处理任务描述分组int失火策略boolean任务执行时是否需要传入上下文 为true 时,执行方法需要接收JobExecutionContext类型的参数
-
元素详细资料
-
jobName
String jobNamejob名称- 返回:
-
group
String group分组- 返回:
- 默认值:
"DEFAULT"
-
targetMethod
String targetMethod执行的方法- 返回:
-
cron
String cronjob 的cron 表达式- 返回:
-
description
String description任务描述- 返回:
- 默认值:
""
-
concurrent
boolean concurrent是否并行处理 false 则为串行处理- 返回:
- 默认值:
true
-
useContext
boolean useContext任务执行时是否需要传入上下文 为true 时,执行方法需要接收JobExecutionContext类型的参数- 返回:
- 默认值:
false
-
misfireInstruction
int misfireInstruction失火策略- 返回:
- 默认值:
0
-
arguments
JobDataMap[] arguments任务参数- 返回:
- 默认值:
{}
-