| | |
| | | return BindingBuilder.bind(defaultQueue()).to(defaultExchange()).with(RouteKeyConstants.ROUTE_KEY_DEFAULT); |
| | | } |
| | | |
| | | |
| | | |
| | | @Bean |
| | | public DirectExchange delayTtlExchangeClothes() { |
| | | return new DirectExchange(RabbitQueueEnum.CLOTHES_ORDER_CANCEL_DELAY_TTL.getExchange()); |
| | | } |
| | | @Bean |
| | | public Queue orderDelayQueueTtlClothes() { |
| | | return QueueBuilder.durable(RabbitQueueEnum.CLOTHES_ORDER_CANCEL_DELAY_TTL.getQueue()) |
| | | //到期后转发的交换机 |
| | | .withArgument("x-dead-letter-exchange", RabbitQueueEnum.CLOTHES_ORDER_CANCEL_DELAY.getExchange()) |
| | | //到期后转发的路由键 |
| | | .withArgument("x-dead-letter-routing-key", RabbitQueueEnum.CLOTHES_ORDER_CANCEL_DELAY.getRoute()) |
| | | .build(); |
| | | } |
| | | @Bean |
| | | public Binding orderDelayBindTtlClothes() { |
| | | return BindingBuilder.bind(orderDelayQueueTtlClothes()).to(delayTtlExchangeClothes()).with(RabbitQueueEnum.CLOTHES_ORDER_CANCEL_DELAY_TTL.getRoute()); |
| | | } |
| | | |
| | | @Bean |
| | | public DirectExchange orderDelayExchangeClothes() { |
| | | return new DirectExchange(RabbitQueueEnum.CLOTHES_ORDER_CANCEL_DELAY.getExchange()); |
| | | } |
| | | @Bean |
| | | public Queue orderDelayQueueClothes() { |
| | | return new Queue(RabbitQueueEnum.CLOTHES_ORDER_CANCEL_DELAY.getQueue()); |
| | | } |
| | | @Bean |
| | | public Binding orderDelayBindClothes() { |
| | | return BindingBuilder.bind(orderDelayQueueClothes()).to(orderDelayExchangeClothes()).with(RabbitQueueEnum.CLOTHES_ORDER_CANCEL_DELAY.getRoute()); |
| | | } |
| | | |
| | | |
| | | @Bean |
| | | public DirectExchange delayTtlExchange() { |
| | | return new DirectExchange(RabbitQueueEnum.ORDER_CANCEL_DELAY_TTL.getExchange()); |
| | |
| | | return BindingBuilder.bind(vipLevelUpQueue()).to(vipLevelUp()).with(RabbitQueueEnum.VIP_LEVEL_UP.getRoute()); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @Bean |
| | | public DirectExchange saleLevelUp() { |
| | | return new DirectExchange(RabbitQueueEnum.SALE_LEVEL_UP.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue saleLevelUpQueue() { |
| | | return new Queue(RabbitQueueEnum.SALE_LEVEL_UP.getQueue()); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding saleLevelUpBind() { |
| | | return BindingBuilder.bind(saleLevelUpQueue()).to(saleLevelUp()).with(RabbitQueueEnum.SALE_LEVEL_UP.getRoute()); |
| | | } |
| | | |
| | | |
| | | @Bean |
| | | public DirectExchange activityOrderCheckExchange() { |
| | | return new DirectExchange(RabbitQueueEnum.ACTIVITY_ORDER_ITEM_CHECK.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue activityOrderCheckQueue() { |
| | | return new Queue(RabbitQueueEnum.ACTIVITY_ORDER_ITEM_CHECK.getQueue()); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding activityOrderCheckBind() { |
| | | return BindingBuilder.bind(activityOrderCheckQueue()).to(activityOrderCheckExchange()).with(RabbitQueueEnum.ACTIVITY_ORDER_ITEM_CHECK.getRoute()); |
| | | } |
| | | |
| | | |
| | | @Bean |
| | | public DirectExchange clothesAddLikeExchange() { |
| | | return new DirectExchange(RabbitQueueEnum.CLOTHES_ADD_LIKE.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue clothesAddLikeQueue() { |
| | | return new Queue(RabbitQueueEnum.CLOTHES_ADD_LIKE.getQueue()); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding clothesAddLikeBind() { |
| | | return BindingBuilder.bind(clothesAddLikeQueue()).to(clothesAddLikeExchange()).with(RabbitQueueEnum.CLOTHES_ADD_LIKE.getRoute()); |
| | | } |
| | | |
| | | |
| | | @Bean |
| | | public DirectExchange clothesAddCollectExchange() { |
| | | return new DirectExchange(RabbitQueueEnum.CLOTHES_ADD_COLLECT.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue clothesAddCollectQueue() { |
| | | return new Queue(RabbitQueueEnum.CLOTHES_ADD_COLLECT.getQueue()); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding clothesAddCollectBind() { |
| | | return BindingBuilder.bind(clothesAddCollectQueue()).to(clothesAddCollectExchange()).with(RabbitQueueEnum.CLOTHES_ADD_COLLECT.getRoute()); |
| | | } |
| | | |
| | | } |