Merge pull request #39072 from BenchmarkingBuffalo
* pr/39072: Move autoStartup property Closes gh-39072
This commit is contained in:
commit
fd10c69c16
|
@ -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