Skip to content

Commit

Permalink
Move autoStartup property
Browse files Browse the repository at this point in the history
Move the property 'autoStartup' from BaseContainer to AmqpContainer.

See gh-39072
  • Loading branch information
BenchmarkingBuffalo authored and mhalbritter committed Jan 10, 2024
1 parent a0b034d commit 56f00c4
Showing 1 changed file with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
* @author Franjo Zilic
* @author Eddú Meléndez
* @author Rafael Carvalho
* @author Lasse Wulff
* @since 1.0.0
*/
@ConfigurationProperties(prefix = "spring.rabbitmq")
Expand Down Expand Up @@ -690,23 +691,15 @@ public StreamContainer getStream() {

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.
*/
Expand Down Expand Up @@ -739,6 +732,14 @@ public abstract static class AmqpContainer extends BaseContainer {
*/
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;
}
Expand Down

0 comments on commit 56f00c4

Please sign in to comment.