Skip to content

Commit d610955

Browse files
committed
Merge branch '3.2.x'
Closes gh-39079
2 parents ffe31cf + 793801b commit d610955

File tree

1 file changed

+14
-13
lines changed
  • spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp

1 file changed

+14
-13
lines changed

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

+14-13
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
* @author Eddú Meléndez
4848
* @author Rafael Carvalho
4949
* @author Scott Frederick
50+
* @author Lasse Wulff
5051
* @since 1.0.0
5152
*/
5253
@ConfigurationProperties(prefix = "spring.rabbitmq")
@@ -718,24 +719,11 @@ public StreamContainer getStream() {
718719

719720
public abstract static class BaseContainer {
720721

721-
/**
722-
* Whether to start the container automatically on startup.
723-
*/
724-
private boolean autoStartup = true;
725-
726722
/**
727723
* Whether to enable observation.
728724
*/
729725
private boolean observationEnabled;
730726

731-
public boolean isAutoStartup() {
732-
return this.autoStartup;
733-
}
734-
735-
public void setAutoStartup(boolean autoStartup) {
736-
this.autoStartup = autoStartup;
737-
}
738-
739727
public boolean isObservationEnabled() {
740728
return this.observationEnabled;
741729
}
@@ -748,6 +736,11 @@ public void setObservationEnabled(boolean observationEnabled) {
748736

749737
public abstract static class AmqpContainer extends BaseContainer {
750738

739+
/**
740+
* Whether to start the container automatically on startup.
741+
*/
742+
private boolean autoStartup = true;
743+
751744
/**
752745
* Acknowledge mode of container.
753746
*/
@@ -786,6 +779,14 @@ public abstract static class AmqpContainer extends BaseContainer {
786779
*/
787780
private final ListenerRetry retry = new ListenerRetry();
788781

782+
public boolean isAutoStartup() {
783+
return this.autoStartup;
784+
}
785+
786+
public void setAutoStartup(boolean autoStartup) {
787+
this.autoStartup = autoStartup;
788+
}
789+
789790
public AcknowledgeMode getAcknowledgeMode() {
790791
return this.acknowledgeMode;
791792
}

0 commit comments

Comments
 (0)