Skip to content

Commit

Permalink
Polish "Set Reactor Netty's shutdownQuietPeriod to 0 when using devto…
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye committed Feb 9, 2023
1 parent bb6dfc1 commit 6c01292
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ private ReactorNettyConfigurations() {
}

@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(ReactorNettyConfigurationProperties.class)
@EnableConfigurationProperties(ReactorNettyProperties.class)
public static class ReactorResourceFactoryConfiguration {

@Bean
@ConditionalOnMissingBean
ReactorResourceFactory reactorResourceFactory(ReactorNettyConfigurationProperties configurationProperties) {
ReactorResourceFactory reactorResourceFactory(ReactorNettyProperties configurationProperties) {
ReactorResourceFactory reactorResourceFactory = new ReactorResourceFactory();
if (configurationProperties.getShutdownQuietPeriod() != null) {
reactorResourceFactory.setShutdownQuietPeriod(configurationProperties.getShutdownQuietPeriod());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
* Configuration properties for Reactor Netty configuration.
* Configuration properties for Reactor Netty.
*
* @author Moritz Halbritter
* @since 2.7.9
*/
@ConfigurationProperties(prefix = "spring.reactor.netty")
public class ReactorNettyConfigurationProperties {
public class ReactorNettyProperties {

/**
* Configure the amount of time to wait before shutting down resources.
* Amount of time to wait before shutting down resources.
*/
private Duration shutdownQuietPeriod;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ spring.groovy.template.cache=false
spring.h2.console.enabled=true
spring.mustache.servlet.cache=false
spring.mvc.log-resolved-exception=true
spring.reactor.netty.shutdown-quiet-period=0s
spring.template.provider.cache=false
spring.thymeleaf.cache=false
spring.web.resources.cache.period=0
spring.web.resources.chain.cache=false
spring.reactor.netty.shutdown-quiet-period=0s

0 comments on commit 6c01292

Please # to comment.