diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java index 60e076ca56a..02524e25602 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java @@ -45,6 +45,7 @@ import org.springframework.util.StringUtils; * @author Franjo Zilic * @author EddĂș MelĂ©ndez * @author Rafael Carvalho + * @author Lasse Wulff * @since 1.0.0 */ @ConfigurationProperties(prefix = "spring.rabbitmq") @@ -690,23 +691,15 @@ public class RabbitProperties { public abstract static class BaseContainer { + } + + public abstract static class AmqpContainer extends BaseContainer { + /** * Whether to start the container automatically on startup. */ private boolean autoStartup = true; - public boolean isAutoStartup() { - return this.autoStartup; - } - - public void setAutoStartup(boolean autoStartup) { - this.autoStartup = autoStartup; - } - - } - - public abstract static class AmqpContainer extends BaseContainer { - /** * Acknowledge mode of container. */ @@ -739,6 +732,14 @@ public class RabbitProperties { */ private final ListenerRetry retry = new ListenerRetry(); + public boolean isAutoStartup() { + return this.autoStartup; + } + + public void setAutoStartup(boolean autoStartup) { + this.autoStartup = autoStartup; + } + public AcknowledgeMode getAcknowledgeMode() { return this.acknowledgeMode; }