Browse Source

Polish "Make RabbitTemplate default receive queue configurable"

Closes gh-13930
pull/13966/head
Stephane Nicoll 8 years ago
parent
commit
fd85cebfef
  1. 6
      spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java
  2. 2
      spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

6
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java

@ -715,7 +715,8 @@ public class RabbitProperties { @@ -715,7 +715,8 @@ public class RabbitProperties {
private String routingKey = "";
/**
* Default queue name that will be used for synchronous receives.
* Name of the default queue to receive messages from when none is specified
* explicitly.
*/
private String queue;
@ -764,12 +765,13 @@ public class RabbitProperties { @@ -764,12 +765,13 @@ public class RabbitProperties {
}
public String getQueue() {
return queue;
return this.queue;
}
public void setQueue(String queue) {
this.queue = queue;
}
}
public static class Retry {

2
spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

@ -1158,6 +1158,7 @@ content into your application. Rather, pick only the properties that you need. @@ -1158,6 +1158,7 @@ content into your application. Rather, pick only the properties that you need.
spring.rabbitmq.ssl.algorithm= # SSL algorithm to use. By default, configured by the Rabbit client library.
spring.rabbitmq.template.exchange= # Name of the default exchange to use for send operations.
spring.rabbitmq.template.mandatory= # Whether to enable mandatory messages.
spring.rabbitmq.template.queue= # Name of the default queue to receive messages from when none is specified explicitly.
spring.rabbitmq.template.receive-timeout= # Timeout for `receive()` operations.
spring.rabbitmq.template.reply-timeout= # Timeout for `sendAndReceive()` operations.
spring.rabbitmq.template.retry.enabled=false # Whether publishing retries are enabled.
@ -1166,7 +1167,6 @@ content into your application. Rather, pick only the properties that you need. @@ -1166,7 +1167,6 @@ content into your application. Rather, pick only the properties that you need.
spring.rabbitmq.template.retry.max-interval=10000ms # Maximum duration between attempts.
spring.rabbitmq.template.retry.multiplier=1 # Multiplier to apply to the previous retry interval.
spring.rabbitmq.template.routing-key= # Value of a default routing key to use for send operations.
spring.rabbitmq.template.queue= # Value of a default queue name that will be used for synchronous receives.
spring.rabbitmq.username=guest # Login user to authenticate to the broker.
spring.rabbitmq.virtual-host= # Virtual host to use when connecting to the broker.

Loading…
Cancel
Save