| | |
| | | return BindingBuilder.bind(agentReturnMoneyQueue()).to(agentReturnMoneyExchange()).with(RabbitQueueEnum.AGENT_REUTRN_MONEY.getRoute()); |
| | | } |
| | | |
| | | |
| | | @Bean |
| | | public DirectExchange orderReturnMoneyExchange() { |
| | | return new DirectExchange(RabbitQueueEnum.ORDER_RETURN_MONEY.getExchange()); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue orderReturnMoneyQueue() { |
| | | return new Queue(QueueConstants.ORDER_RETURN_MONEY); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding orderReturnMoneyBind() { |
| | | return BindingBuilder.bind(agentReturnMoneyQueue()).to(agentReturnMoneyExchange()).with(RabbitQueueEnum.ORDER_RETURN_MONEY.getRoute()); |
| | | } |
| | | |
| | | } |