|
@@ -34,15 +34,11 @@ public class RabbitConfig {
|
|
|
return new Queue(RabbitConfig.QUEUE_DELAY_WAIMAI);
|
|
|
}
|
|
|
|
|
|
- @Bean(RabbitConstant.QUEUE_DELAY_PUSH_STORE_STATUS)
|
|
|
- public Queue queuePushStoreStatusDelayMessage() {
|
|
|
- return new Queue(RabbitConstant.QUEUE_DELAY_PUSH_STORE_STATUS);
|
|
|
+ @Bean(RabbitConstant.QUEUE_DELAY_OPEN_STATUS_NOTIFY)
|
|
|
+ public Queue queueOpenStatusNotifyDelayMessage() {
|
|
|
+ return new Queue(RabbitConstant.QUEUE_DELAY_OPEN_STATUS_NOTIFY);
|
|
|
}
|
|
|
|
|
|
- @Bean(RabbitConstant.QUEUE_DELAY_PUSH_ORDER_STATUS)
|
|
|
- public Queue queuePushOrderStatusDelayMessage() {
|
|
|
- return new Queue(RabbitConstant.QUEUE_DELAY_PUSH_ORDER_STATUS);
|
|
|
- }
|
|
|
//创建队列
|
|
|
@Bean("topic.cancelOrder")
|
|
|
public Queue cancelOrder() {
|
|
@@ -100,13 +96,8 @@ public class RabbitConfig {
|
|
|
}
|
|
|
|
|
|
@Bean
|
|
|
- Binding bindingExchangePushStoreStatusDelayMessage(@Qualifier(RabbitConstant.QUEUE_DELAY_PUSH_STORE_STATUS) Queue queue, @Qualifier("delay_exchange")CustomExchange exchange) {
|
|
|
- return BindingBuilder.bind(queue).to(exchange).with(RabbitConstant.QUEUE_DELAY_PUSH_STORE_STATUS_ROUTING_KEY).noargs();
|
|
|
- }
|
|
|
-
|
|
|
- @Bean
|
|
|
- Binding bindingExchangePushOrderStatusDelayMessage(@Qualifier(RabbitConstant.QUEUE_DELAY_PUSH_ORDER_STATUS) Queue queue, @Qualifier("delay_exchange")CustomExchange exchange) {
|
|
|
- return BindingBuilder.bind(queue).to(exchange).with(RabbitConstant.QUEUE_DELAY_PUSH_ORDER_STATUS_ROUTING_KEY).noargs();
|
|
|
+ Binding bindingExchangeOpenStatusNotifyDelayMessage(@Qualifier(RabbitConstant.QUEUE_DELAY_OPEN_STATUS_NOTIFY) Queue queue, @Qualifier("delay_exchange")CustomExchange exchange) {
|
|
|
+ return BindingBuilder.bind(queue).to(exchange).with(RabbitConstant.QUEUE_DELAY_OPEN_STATUS_NOTIFY_ROUTING_KEY).noargs();
|
|
|
}
|
|
|
|
|
|
}
|