提交 03d14457 authored 作者: 王红亮's avatar 王红亮

更新rabbitmq配置

上级 a27f0720
...@@ -50,10 +50,6 @@ public class RabbitAConfiguration { ...@@ -50,10 +50,6 @@ public class RabbitAConfiguration {
throw new IllegalArgumentException( throw new IllegalArgumentException(
"redis datasource queue_name is null, please check your config"); "redis datasource queue_name is null, please check your config");
} }
if (!redisOption.containsKey(RabbitmqOptionRule.SCHEMA.key())) {
throw new IllegalArgumentException(
"redis datasource schema is null, please check your config");
}
if (!redisOption.containsKey(RabbitmqOptionRule.URL.key())) { if (!redisOption.containsKey(RabbitmqOptionRule.URL.key())) {
throw new IllegalArgumentException( throw new IllegalArgumentException(
"redis datasource url is null, please check your config"); "redis datasource url is null, please check your config");
...@@ -65,7 +61,6 @@ public class RabbitAConfiguration { ...@@ -65,7 +61,6 @@ public class RabbitAConfiguration {
redisConfiguration.setPassword(redisOption.get(RabbitmqOptionRule.PASSWORD.key())); redisConfiguration.setPassword(redisOption.get(RabbitmqOptionRule.PASSWORD.key()));
redisConfiguration.setVirtualHost(redisOption.get(RabbitmqOptionRule.VIRTUAL_HOST.key())); redisConfiguration.setVirtualHost(redisOption.get(RabbitmqOptionRule.VIRTUAL_HOST.key()));
redisConfiguration.setQueueName(redisOption.get(RabbitmqOptionRule.QUEUE_NAME.key())); redisConfiguration.setQueueName(redisOption.get(RabbitmqOptionRule.QUEUE_NAME.key()));
redisConfiguration.setSchema(redisOption.get(RabbitmqOptionRule.SCHEMA.key()));
redisConfiguration.setUri(redisOption.get(RabbitmqOptionRule.URL.key())); redisConfiguration.setUri(redisOption.get(RabbitmqOptionRule.URL.key()));
return redisConfiguration; return redisConfiguration;
......
...@@ -18,7 +18,6 @@ public class RabbitConfiguration { ...@@ -18,7 +18,6 @@ public class RabbitConfiguration {
private long deliveryTimeout; private long deliveryTimeout;
private String queueName; private String queueName;
private String routingKey; private String routingKey;
private String schema;
public RabbitConfiguration() {} public RabbitConfiguration() {}
...@@ -58,57 +57,29 @@ public class RabbitConfiguration { ...@@ -58,57 +57,29 @@ public class RabbitConfiguration {
this.deliveryTimeout = deliveryTimeout; this.deliveryTimeout = deliveryTimeout;
this.queueName = queueName; this.queueName = queueName;
this.routingKey = routingKey; this.routingKey = routingKey;
this.schema = schema;
} }
@Override @Override
public String toString() { public String toString() {
return "RabbitConfiguration{" return "RabbitConfiguration{" +
+ "host='" "host='" + host + '\'' +
+ host ", port=" + port +
+ '\'' ", virtualHost='" + virtualHost + '\'' +
+ ", port=" ", username='" + username + '\'' +
+ port ", password='" + password + '\'' +
+ ", virtualHost='" ", uri='" + uri + '\'' +
+ virtualHost ", networkRecoveryInterval=" + networkRecoveryInterval +
+ '\'' ", automaticRecovery=" + automaticRecovery +
+ ", username='" ", topologyRecovery=" + topologyRecovery +
+ username ", connectionTimeout=" + connectionTimeout +
+ '\'' ", requestedChannelMax=" + requestedChannelMax +
+ ", password='" ", requestedFrameMax=" + requestedFrameMax +
+ password ", requestedHeartbeat=" + requestedHeartbeat +
+ '\'' ", prefetchCount=" + prefetchCount +
+ ", uri='" ", deliveryTimeout=" + deliveryTimeout +
+ uri ", queueName='" + queueName + '\'' +
+ '\'' ", routingKey='" + routingKey + '\'' +
+ ", networkRecoveryInterval=" '}';
+ networkRecoveryInterval
+ ", automaticRecovery="
+ automaticRecovery
+ ", topologyRecovery="
+ topologyRecovery
+ ", connectionTimeout="
+ connectionTimeout
+ ", requestedChannelMax="
+ requestedChannelMax
+ ", requestedFrameMax="
+ requestedFrameMax
+ ", requestedHeartbeat="
+ requestedHeartbeat
+ ", prefetchCount="
+ prefetchCount
+ ", deliveryTimeout="
+ deliveryTimeout
+ ", queueName='"
+ queueName
+ '\''
+ ", routingKey='"
+ routingKey
+ '\''
+ ", schema='"
+ schema
+ '\''
+ '}';
} }
public String getHost() { public String getHost() {
...@@ -247,11 +218,4 @@ public class RabbitConfiguration { ...@@ -247,11 +218,4 @@ public class RabbitConfiguration {
this.routingKey = routingKey; this.routingKey = routingKey;
} }
public String getSchema() {
return schema;
}
public void setSchema(String schema) {
this.schema = schema;
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论