quartz

接上一篇Quartz

 

我是JOB
{SysUpTime = 182442 days 18:44:27} {Timestamp = Sat Dec 14 14:40:26 CST 2019}
我是JOB
{SysUpTime = 182442 days 18:45:4} {Timestamp = Sat Dec 14 14:40:30 CST 2019}
我是JOB
{SysUpTime = 182442 days 18:45:44} {Timestamp = Sat Dec 14 14:40:34 CST 2019}
我是JOB
{SysUpTime = 182442 days 18:46:24} {Timestamp = Sat Dec 14 14:40:38 CST 2019}

job  每次调用前都会被实例化一次,用后被垃圾回收机制收回

 

 

 

job 与JOBdetail关系

System.out.println("任务名:"+jobDetail.getKey().getName());
System.out.println("任务组:"+jobDetail.getKey().getGroup());
System.out.println("任务类名:"+jobDetail.getJobClass().getName());

Connected to the target VM, address: '127.0.0.1:61533', transport: 'socket'

 

job不分组时:任务组为默认

任务名:myjob
任务组:DEFAULT
任务类名:com.ry.project.task.QuartzJob
任务名:myjob
任务组:group
任务类名:com.ry.project.task.QuartzJob

quartz_第1张图片

你可能感兴趣的:(quartz)