diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java index b20d1075c7..929b6afadb 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java @@ -504,7 +504,7 @@ public class RabbitProperties { private Boolean defaultRequeueRejected; /** - * How often to publish idle container events. + * How often idle container events should be published in milliseconds. */ private Long idleEventInterval; @@ -571,7 +571,7 @@ public class RabbitProperties { } public Long getIdleEventInterval() { - return idleEventInterval; + return this.idleEventInterval; } public void setIdleEventInterval(Long idleEventInterval) { diff --git a/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc b/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc index 3b8f47ff60..c570ffb9bf 100644 --- a/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc +++ b/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc @@ -863,6 +863,7 @@ content into your application; rather pick only the properties that you need. spring.rabbitmq.listener.auto-startup=true # Start the container automatically on startup. spring.rabbitmq.listener.concurrency= # Minimum number of consumers. spring.rabbitmq.listener.default-requeue-rejected= # Whether or not to requeue delivery failures; default `true`. + spring.rabbitmq.idle-event-interval= # How often idle container events should be published in milliseconds. spring.rabbitmq.listener.max-concurrency= # Maximum number of consumers. spring.rabbitmq.listener.prefetch= # Number of messages to be handled in a single request. It should be greater than or equal to the transaction size (if used). spring.rabbitmq.listener.retry.enabled=false # Whether or not publishing retries are enabled.