提交 | 用户 | 时间
|
fd2207
|
1 |
package com.jcdm.quartz.util; |
懒 |
2 |
|
|
3 |
import org.quartz.DisallowConcurrentExecution; |
|
4 |
import org.quartz.JobExecutionContext; |
|
5 |
import com.jcdm.quartz.domain.SysJob; |
|
6 |
|
|
7 |
/** |
|
8 |
* 定时任务处理(禁止并发执行) |
|
9 |
* |
|
10 |
* @author jc |
|
11 |
* |
|
12 |
*/ |
|
13 |
@DisallowConcurrentExecution |
|
14 |
public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob |
|
15 |
{ |
|
16 |
@Override |
|
17 |
protected void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception |
|
18 |
{ |
|
19 |
JobInvokeUtil.invokeMethod(sysJob); |
|
20 |
} |
|
21 |
} |