net.mingsoft.quartz.job.QuartzDisallowConcurrentExecution Maven / Gradle / Ivy
package net.mingsoft.quartz.job;
import net.mingsoft.quartz.entity.JobEntity;
import net.mingsoft.quartz.utils.JobInvokeUtil;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
/**
* 定时任务处理(禁止并发执行)
*
* @author 铭飞开源团队
*
*/
@DisallowConcurrentExecution
public class QuartzDisallowConcurrentExecution extends BaseQuartzJob
{
@Override
protected void doExecute(JobExecutionContext context, JobEntity jobEntity) throws Exception
{
JobInvokeUtil.invokeMethod(jobEntity);
}
}