添加rabbitmq延迟队列插件处理订单超时功能
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
package com.greenorange.promotion.constant;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface MqConstant {
|
||||
|
||||
List<Long> DELAY_MILLIS = List.of(10000L, 10000L, 10000L, 15000L, 15000L, 30000L, 30000L, 60000L, 60000L, 120000L, 120000L, 120000L, 300000L);
|
||||
|
||||
// List<Long> DELAY_MILLIS = List.of(10000L, 10000L, 10000L, 15000L, 15000L);
|
||||
|
||||
String DELAY_EXCHANGE = "delay.topic";
|
||||
|
||||
String DELAY_ORDER_QUEUE = "order.delay.queue";
|
||||
|
||||
String DELAY_ORDER_ROUTING_KEY = "order.key";
|
||||
|
||||
}
|
Reference in New Issue
Block a user