Commit f6a5d469 authored by yanzg's avatar yanzg

自动变量处理

parent cd2e7307
...@@ -16,7 +16,7 @@ import java.util.List; ...@@ -16,7 +16,7 @@ import java.util.List;
* 消息队列初始化服务,用于重启时,初始化消息队列对象 * 消息队列初始化服务,用于重启时,初始化消息队列对象
*/ */
@Component @Component
public class MessageInitPlan implements ThreadNext.Next, Runnable { public class MqMessageInitPlan implements ThreadNext.Next, Runnable {
@Autowired @Autowired
private MessageService messageService; private MessageService messageService;
...@@ -27,7 +27,7 @@ public class MessageInitPlan implements ThreadNext.Next, Runnable { ...@@ -27,7 +27,7 @@ public class MessageInitPlan implements ThreadNext.Next, Runnable {
@Value("${yzg.mq.retry.time:60000}") @Value("${yzg.mq.retry.time:60000}")
private int retryTime; private int retryTime;
public MessageInitPlan() { public MqMessageInitPlan() {
ThreadNext.start(this, "message init error"); ThreadNext.start(this, "message init error");
} }
...@@ -64,7 +64,7 @@ public class MessageInitPlan implements ThreadNext.Next, Runnable { ...@@ -64,7 +64,7 @@ public class MessageInitPlan implements ThreadNext.Next, Runnable {
try { try {
messageService.nextSend(message); messageService.nextSend(message);
} catch (Exception ex) { } catch (Exception ex) {
Log.error(MessageInitPlan.class, ex); Log.error(MqMessageInitPlan.class, ex);
} }
} }
} }
......
...@@ -9,12 +9,12 @@ import org.springframework.stereotype.Component; ...@@ -9,12 +9,12 @@ import org.springframework.stereotype.Component;
* 消息队列初始化服务,用于重启时,初始化消息队列对象 * 消息队列初始化服务,用于重启时,初始化消息队列对象
*/ */
@Component @Component
public class QueueInitPlan implements ThreadNext.Next { public class MqQueueInitPlan implements ThreadNext.Next {
@Autowired @Autowired
private QueueService queueService; private QueueService queueService;
public QueueInitPlan() { public MqQueueInitPlan() {
ThreadNext.start(this, "queue init error"); ThreadNext.start(this, "queue init error");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment