rabbitmq.yml 4.17 KB
consumer:
      - address: ${rabbit_ufo}
        username: ${rabbit_ufo_user}
        password: ${rabbit_ufo_password}
        consumers:
            - class: com.yohoufo.order.mq.consumer.SellerOrderAutoCancelDelayMsgConsumer
              topic: sellerOrder.autoCancel
              delay:
                    interval: 15

            - class: com.yohoufo.order.mq.consumer.BuyerOrderAutoCancelDelayMsgConsumer
              topic: buyerOrder.autoCancel
              delay:
                    interval: 10

            - class: com.yohoufo.order.mq.consumer.BuyerOrderConfirmDelayMsgConsumer
              topic: buyerOrder.autoConfirm
              delay:
                    interval: 10080

            #瑕疵确认时间为48小时
            - class: com.yohoufo.order.mq.consumer.BuyerOrderMiniFaultOuterTimeDelayMsgConsumer
              topic: buyerOrder.miniFaultAutoReject
              delay:
                    interval: 8

            #- class: com.yohoufo.order.mq.consumer.BuyerOrderCancelShamDeliveryMsgConsumer
            #  topic: buyerOrder.cancelShamDeliver
            #  delay:
            #        interval: 5760

            #order.notPaidNotice
            - class: com.yohoufo.order.mq.consumer.NotPaidNoticeDelayMsgConsumer
              topic: order.notPaidNotice
              delay:
                    interval: 5

            - class: com.yohoufo.order.mq.consumer.NotDeliverNoticeDelayMsgConsumer
              topic: order.notDeliver
              delay:
                    interval: 1440

            - class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer
              topic: sellerOrder.autoCancelDeliver
              delay:
                    interval: 2160

            #春节期间二次发货恢复成24小时,
            #在系统发布后未生效之前.需要该队列,后续不再使用,
            #6.8.6以后的版本可以去掉
            - class: com.yohoufo.order.mq.consumer.NotDeliverNoticeDelayMsgConsumer
              topic: order.notDeliver
              delay:
                    interval: 6480

             #春节期间发货时间恢复成36小时,
             #在系统发布后未生效之前.需要该队列,
             #后续不再使用,6.8.6以后的版本可以去掉
            - class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer
              topic: sellerOrder.autoCancelDeliver
              delay:
                    interval: 7200

      - address: ${rabbit_ufo}
        username: ${rabbit_ufo_user}
        password: ${rabbit_ufo_password}
        consumers:
            #更新物流调拨信息
            - class: com.yohoufo.order.mq.consumer.ExpressInfoUpdateConsumer
              topic: ufo.order.updateExpressInfo
              
      - address: ${rabbit_ufo}
        username: ${rabbit_ufo_user}
        password: ${rabbit_ufo_password}
        consumers:
            #物权转移确认超时
            - class: com.yohoufo.product.mq.consumer.ProductOwnerConfirmDelayMsgConsumer
              topic: productOwner.updateTimeOut
              delay:
                    interval: 4320


      # crm
      - address: ${rabbit_crm_host}
        username: ${rabbit_crm_user}
        password: ${rabbit_crm_password}
        consumers:
            # CRM发券
            - class: com.yohoufo.promotion.mq.CouponSendConsumer
              topic: ufo.couponSend
              ratelimit: 20

producer:
      - address: ${rabbit_ufo}
        username: ${rabbit_ufo_user}
        password: ${rabbit_ufo_password}
        producers:
            - bean: tradeMqProducer
              persistent: true
              confirmcallback: orderMessageConfirmCallback

      - address: ${rabbit_ufo}
        username: ${rabbit_ufo_user}
        password: ${rabbit_ufo_password}
        producers:
            - bean: yhProducer

      - address: ${rabbit_common}
        username: ${rabbit_common_user}
        password: ${rabbit_common_password}
        producers:
            - bean: ufoExpressInfoProducer

      # crm
      - address: ${rabbit_crm_host}
        username: ${rabbit_crm_user}
        password: ${rabbit_crm_password}
        producers:
            - bean: crmMqProducer
              trace: true