package com.xxl.job.service.job.impl;

import java.util.concurrent.TimeUnit;

import org.quartz.DisallowConcurrentExecution;

import com.xxl.job.service.job.LocalNomalJobBean;

@DisallowConcurrentExecution	// 串行；线程数要多配置几个，否则不生效；
public class DemoConcurrentJobBean extends LocalNomalJobBean {

	@Override
	public Object handle(String... param) {
		
		try {
			TimeUnit.SECONDS.sleep(10);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		
		return false;
	}

}
