From d66e4475926e13188ccbd8f284b293c6eaceacbe Mon Sep 17 00:00:00 2001
From: liriming <1343021927@qq.com>
Date: 星期三, 11 十二月 2024 18:02:54 +0800
Subject: [PATCH] MQ

---
 shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/config/QueuePredictFinishConfig.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/config/TopicPredictFinishRabbitConfig.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/config/QueuePredictFinishConfig.java
similarity index 62%
rename from shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/config/TopicPredictFinishRabbitConfig.java
rename to shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/config/QueuePredictFinishConfig.java
index 110fbe8..148bcc4 100644
--- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/config/TopicPredictFinishRabbitConfig.java
+++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/mq/config/QueuePredictFinishConfig.java
@@ -1,6 +1,6 @@
 package com.iailab.module.shasteel.mq.config;
 
-import com.iailab.module.shasteel.mq.consumer.PredictFinishMessage;
+import com.iailab.module.shasteel.mq.common.RoutingConstant;
 import org.springframework.amqp.core.Binding;
 import org.springframework.amqp.core.BindingBuilder;
 import org.springframework.amqp.core.Queue;
@@ -14,23 +14,23 @@
  * @createTime 2024年11月27日
  */
 @Configuration
-public class TopicPredictFinishRabbitConfig {
-    //绑定键
-    public final static String routingPredictFinish = PredictFinishMessage.PREDICTFINISH_ROUTING_KEY;
+public class QueuePredictFinishConfig {
+    // 队列名称
+    public final static String QUEUE_NAME = "IaiabFastShateel.Model.PredictFinish";
 
     @Bean
     public Queue predictFinishQueue() {
-        return new Queue(TopicPredictFinishRabbitConfig.routingPredictFinish);
+        return new Queue(QueuePredictFinishConfig.QUEUE_NAME);
     }
 
     @Bean
     TopicExchange predictFinishExchange() {
-        return new TopicExchange(PredictFinishMessage.EXCHANGE);
+        return new TopicExchange(RoutingConstant.EXCHANGE);
     }
 
     // 注意通配符*和#的用法
     @Bean
     Binding bindingExchangeMessagePF() {
-        return BindingBuilder.bind(predictFinishQueue()).to(predictFinishExchange()).with(routingPredictFinish);
+        return BindingBuilder.bind(predictFinishQueue()).to(predictFinishExchange()).with(RoutingConstant.Iailab_Model_PredictFinish);
     }
 }

--
Gitblit v1.9.3