| | |
| | | public static final String QUEUE_MSG_HISTORY = "queue_msg_history"; |
| | | public static final String ROUTING_KEY_MSG_HISTORY = "routing_key_msg_history"; |
| | | |
| | | 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); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding trc20Binding() { |
| | | return BindingBuilder.bind(trc20Queue()).to(defaultExchange()).with(ROUTING_TRC20_BLOCK); |
| | | } |
| | | |
| | | |
| | | @Bean |
| | | public Queue testQueue() { |
| | | return new Queue(QUEUE_TEST, true); |
| | | } |