rabbitmq.yml 3.11 KB
consumer:
      - address: 192.168.102.45:5672
        username: yoho
        password: yoho
        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

            - class: com.yohoufo.order.mq.consumer.BuyerOrderMiniFaultOuterTimeDelayMsgConsumer
              topic: buyerOrder.miniFaultAutoReject
              delay:
                    interval: 1440

            - 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

            #春节期间二次发货提醒时间延长的108小时 ,后续不再使用,6.8.6以后的版本可以去掉
            - class: com.yohoufo.order.mq.consumer.NotDeliverNoticeDelayMsgConsumer
              topic: order.notDeliver_108
              delay:
                    interval: 6480

            #春节期间发货时间延长的120小时 ,后续不再使用,6.8.6以后的版本可以去掉
            - class: com.yohoufo.order.mq.consumer.SellerOrderCancelDeliverDelayMsgConsumer120
              topic: sellerOrder.autoCancelDeliver_120
              delay:
                    interval: 7200

      #更新物流调拨信息
      - address: 192.168.102.45:5672
        username: yoho
        password: yoho
        consumers:
            - class: com.yohoufo.order.mq.consumer.ExpressInfoUpdateConsumer
              topic: ufo.order.updateExpressInfo

      # crm
      - address: 192.168.102.211:5672
        consumers:
            # CRM发券
            - class: com.yohoufo.promotion.mq.CouponSendConsumer
              topic: promotion.couponSend
              ratelimit: 20

producer:
    - address: 192.168.102.45:5672
      producers:
          - bean: browseProducer  #only once named in classpath

    - address: 192.168.102.45:5672
      producers:
          - bean: yhProducer

    - address: 192.168.102.45:5672
      producers:
          - bean: ufoExpressInfoProducer

    - address: 192.168.103.58:5672
      username: yoho
      password: yoho
      producers:
          - bean: tradeMqProducer
            persistent: true
            confirmcallback: orderMessageConfirmCallback

  # crm
    - address: 192.168.102.45:5672
      producers:
          - bean: crmMqProducer
            trace: true