| | |
| | | public class QueuePredictFinishConfig { |
| | | // 队列名称 |
| | | public final static String QUEUE_NAME = "IaiabFastShateel.Model.PredictFinish"; |
| | | public final static String QUEUE_NAME2 = "IaiabFastShateel.Model.PredictFinish2"; |
| | | |
| | | public final static String QUEUE_NAME_ELEC = "IaiabFastShateel.Model.PredictFinish.Elec"; |
| | | |
| | |
| | | @Bean |
| | | public Queue predictFinishQueue() { |
| | | return new Queue(QueuePredictFinishConfig.QUEUE_NAME); |
| | | } |
| | | @Bean |
| | | public Queue predictFinishQueue2() { |
| | | return new Queue(QueuePredictFinishConfig.QUEUE_NAME2); |
| | | } |
| | | |
| | | @Bean |
| | |
| | | Binding bindingExchangeMessagePF() { |
| | | return BindingBuilder.bind(predictFinishQueue()).to(predictFinishExchange()).with(RoutingConstant.Iailab_Model_PredictFinish); |
| | | } |
| | | @Bean |
| | | Binding bindingExchangeMessagePF2() { |
| | | return BindingBuilder.bind(predictFinishQueue2()).to(predictFinishExchange()).with(RoutingConstant.Iailab_Model_PredictFinish); |
| | | } |
| | | |
| | | @Bean |
| | | Binding bindingExchangeMessageElec() { |