| | |
| | | return BindingBuilder.bind(orderCouponQueue()).to(orderCouponExchange()).with(RabbitQueueEnum.ORDER_COUPON.getRoute()); |
| | | } |
| | | |
| | | |
| | | @Bean |
| | | public DirectExchange getScoreMsgExchange() { |
| | | return new DirectExchange(RabbitQueueEnum.GET_SCORE_MSG.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue getScoreMsgQueue() { |
| | | return new Queue(QueueConstants.GET_SCORE_MSG); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding getScoreMsgBind() { |
| | | return BindingBuilder.bind(getScoreMsgQueue()).to(getScoreMsgExchange()).with(RabbitQueueEnum.GET_SCORE_MSG.getRoute()); |
| | | } |
| | | |
| | | } |