|
@@ -31,13 +31,10 @@ public class RabbitConfig {
|
|
|
private String password;
|
|
|
|
|
|
|
|
|
- public static final String EXCHANGE_MAINTENANCE = "exchange_maintenance";
|
|
|
public static final String EXCHANGE_INDICATOR = "exchange_indicator";
|
|
|
|
|
|
- public static final String QUEUE_MAINTENANCE = "QUEUE_maintenance";
|
|
|
public static final String QUEUE_INDICATOR = "QUEUE_indicator";
|
|
|
|
|
|
- public static final String ROUTINGKEY_MAINTENANCE = "routingKey_maintenance";
|
|
|
public static final String ROUTINGKEY_INDICATOR = "routingKey_indicator";
|
|
|
|
|
|
@Bean
|
|
@@ -84,17 +81,4 @@ public class RabbitConfig {
|
|
|
return BindingBuilder.bind(queueIndicator()).to(defaultExchange()).with(RabbitConfig.ROUTINGKEY_INDICATOR);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- * 获取队列B
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Bean
|
|
|
- public Queue queueMaintenance() {
|
|
|
- return new Queue(QUEUE_MAINTENANCE, true);
|
|
|
- }
|
|
|
-
|
|
|
- @Bean
|
|
|
- public Binding bindingMaintenance() {
|
|
|
- return BindingBuilder.bind(queueMaintenance()).to(defaultExchange()).with(RabbitConfig.ROUTINGKEY_MAINTENANCE);
|
|
|
- }
|
|
|
}
|