| | |
| | | public static final String QUEUE_TRC20_BLOCK = "QUEUE_TRC20_BLOCK"; |
| | | public static final String ROUTING_TRC20_BLOCK = "ROUTING_TRC20_BLOCK"; |
| | | |
| | | |
| | | public static final String QUEUE_ORDER_RETURN = "QUEUE_ORDER_RETURN"; |
| | | public static final String ROUTING_ORDER_RETURN = "ROUTING_ORDER_RETURN"; |
| | | |
| | | @Resource |
| | | private ConnectionFactory connectionFactory; |
| | | |
| | |
| | | } |
| | | |
| | | @Bean |
| | | public Queue orderReturnQueue() { |
| | | return new Queue(QUEUE_ORDER_RETURN); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding orderReturnBinding() { |
| | | return BindingBuilder.bind(orderReturnQueue()).to(defaultExchange()).with(ROUTING_ORDER_RETURN); |
| | | } |
| | | |
| | | |
| | | @Bean |
| | | public Queue trc20Queue() { |
| | | return new Queue(QUEUE_TRC20_BLOCK); |
| | | } |