mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Move autoStartup property
Move the property 'autoStartup' from BaseContainer to AmqpContainer. See gh-39072
This commit is contained in:
parent
a0b034dfc8
commit
56f00c4c21
@ -45,6 +45,7 @@ import org.springframework.util.StringUtils;
|
|||||||
* @author Franjo Zilic
|
* @author Franjo Zilic
|
||||||
* @author Eddú Meléndez
|
* @author Eddú Meléndez
|
||||||
* @author Rafael Carvalho
|
* @author Rafael Carvalho
|
||||||
|
* @author Lasse Wulff
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
@ConfigurationProperties(prefix = "spring.rabbitmq")
|
@ConfigurationProperties(prefix = "spring.rabbitmq")
|
||||||
@ -690,23 +691,15 @@ public class RabbitProperties {
|
|||||||
|
|
||||||
public abstract static class BaseContainer {
|
public abstract static class BaseContainer {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract static class AmqpContainer extends BaseContainer {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether to start the container automatically on startup.
|
* Whether to start the container automatically on startup.
|
||||||
*/
|
*/
|
||||||
private boolean autoStartup = true;
|
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.
|
* Acknowledge mode of container.
|
||||||
*/
|
*/
|
||||||
@ -739,6 +732,14 @@ public class RabbitProperties {
|
|||||||
*/
|
*/
|
||||||
private final ListenerRetry retry = new ListenerRetry();
|
private final ListenerRetry retry = new ListenerRetry();
|
||||||
|
|
||||||
|
public boolean isAutoStartup() {
|
||||||
|
return this.autoStartup;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAutoStartup(boolean autoStartup) {
|
||||||
|
this.autoStartup = autoStartup;
|
||||||
|
}
|
||||||
|
|
||||||
public AcknowledgeMode getAcknowledgeMode() {
|
public AcknowledgeMode getAcknowledgeMode() {
|
||||||
return this.acknowledgeMode;
|
return this.acknowledgeMode;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user