提交 | 用户 | 时间
|
0cceb6
|
1 |
package com.jcdm.quartz.util; |
Y |
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 |
} |