| | |
| | | public static final String QUEUE_DELAY = "queue.delay"; |
| | | public static final String EXCHANGE_DELAY = "exchange.delay"; |
| | | |
| | | public static final String QUEUE_MSG_HISTORY = "queue_msg_history"; |
| | | public static final String ROUTING_KEY_MSG_HISTORY = "routing_key_msg_history"; |
| | | |
| | | @Resource |
| | | private ConnectionFactory connectionFactory; |
| | | |
| | |
| | | } |
| | | |
| | | @Bean |
| | | public Queue msgHistoryQueue() { |
| | | return new Queue(QUEUE_MSG_HISTORY); |
| | | } |
| | | |
| | | @Bean |
| | | public Binding msgHistoryBinding() { |
| | | return BindingBuilder.bind(msgHistoryQueue()).to(defaultExchange()).with(ROUTING_KEY_MSG_HISTORY); |
| | | } |
| | | |
| | | @Bean |
| | | public Queue testQueue() { |
| | | return new Queue(QUEUE_TEST, true); |
| | | } |