package com.newvideo.job;
|
|
import javax.annotation.Resource;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.stereotype.Component;
|
|
import com.newvideo.service.imp.zhibo.LJFLiveService;
|
import com.newvideo.util.Constant;
|
|
/**
|
*
|
*
|
* @author Administrator
|
*
|
*/
|
|
@Component
|
public class ZhiBoUpdateJob {
|
@Resource
|
private LJFLiveService ljfLiveService;
|
|
@Scheduled(cron = "0 2/5 * * * ? ")
|
public void doJob() {
|
if (!Constant.JobTasker)
|
return;
|
System.out.println("ZhiBoUpdateJob-doJob");
|
new Thread(new Runnable() {
|
|
public void run() {
|
ljfLiveService.update();
|
}
|
}).start();
|
}
|
}
|