|
|
package com.yoho.activity.queue.thread;
|
|
|
|
|
|
import java.util.concurrent.Executors;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
import org.slf4j.Logger;
|
...
|
...
|
@@ -10,6 +9,7 @@ import org.springframework.stereotype.Service; |
|
|
|
|
|
import com.netflix.config.DynamicLongProperty;
|
|
|
import com.netflix.config.DynamicPropertyFactory;
|
|
|
import com.yoho.activity.queue.constant.Const;
|
|
|
import com.yoho.activity.queue.service.ITimeTaskService;
|
|
|
|
|
|
@Service
|
...
|
...
|
@@ -25,7 +25,7 @@ public class LuckyUserNoticeThread { |
|
|
DynamicLongProperty initialDelay = DynamicPropertyFactory.getInstance().getLongProperty("drawline.luckyUserNotice.interval", 120);
|
|
|
|
|
|
//(2)服务启动10后开始执行, 默认每隔2小时执行一次
|
|
|
Executors.newScheduledThreadPool(1).scheduleAtFixedRate(new Runnable() {
|
|
|
Const.LUCKYUSERNOTICE_EXE.scheduleAtFixedRate(new Runnable() {
|
|
|
|
|
|
@Override
|
|
|
public void run() {
|
...
|
...
|
|