批注接口 JobDefinition


@Target(TYPE) @Retention(RUNTIME) @Inherited @Documented public @interface JobDefinition
job 定时任务定义
版本:
$Id: $Id
作者:
zhanglinfeng
  • 元素详细资料

    • jobName

      String jobName
      job名称
      返回:
    • group

      String group
      分组
      返回:
      默认值:
      "DEFAULT"
    • targetMethod

      String targetMethod
      执行的方法
      返回:
    • cron

      String cron
      job 的cron 表达式
      返回:
    • description

      String description
      任务描述
      返回:
      默认值:
      ""
    • concurrent

      boolean concurrent
      是否并行处理 false 则为串行处理
      返回:
      默认值:
      true
    • useContext

      boolean useContext
      任务执行时是否需要传入上下文 为true 时,执行方法需要接收JobExecutionContext类型的参数
      返回:
      默认值:
      false
    • misfireInstruction

      int misfireInstruction
      失火策略
      返回:
      默认值:
      0
    • arguments

      JobDataMap[] arguments
      任务参数
      返回:
      默认值:
      {}