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 4c0081ec70a..11c950f2279 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 @@ -47,6 +47,7 @@ import org.springframework.util.unit.DataSize; * @author EddĂș MelĂ©ndez * @author Rafael Carvalho * @author Scott Frederick + * @author Lasse Wulff * @since 1.0.0 */ @ConfigurationProperties(prefix = "spring.rabbitmq") @@ -718,24 +719,11 @@ public class RabbitProperties { public abstract static class BaseContainer { - /** - * Whether to start the container automatically on startup. - */ - private boolean autoStartup = true; - /** * Whether to enable observation. */ private boolean observationEnabled; - public boolean isAutoStartup() { - return this.autoStartup; - } - - public void setAutoStartup(boolean autoStartup) { - this.autoStartup = autoStartup; - } - public boolean isObservationEnabled() { return this.observationEnabled; } @@ -748,6 +736,11 @@ public class RabbitProperties { public abstract static class AmqpContainer extends BaseContainer { + /** + * Whether to start the container automatically on startup. + */ + private boolean autoStartup = true; + /** * Acknowledge mode of container. */ @@ -786,6 +779,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; }