Browse Source

Polish ReactorResourceFactory

Closes gh-24620
pull/24627/head
Johnny Lim 5 years ago committed by GitHub
parent
commit
8285666ee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      spring-web/src/main/java/org/springframework/http/client/reactive/ReactorResourceFactory.java

6
spring-web/src/main/java/org/springframework/http/client/reactive/ReactorResourceFactory.java

@ -161,8 +161,8 @@ public class ReactorResourceFactory implements InitializingBean, DisposableBean @@ -161,8 +161,8 @@ public class ReactorResourceFactory implements InitializingBean, DisposableBean
/**
* Configure the amount of time we'll wait before shutting down resources.
* If a task is submitted during the {@code quietPeriod}, it is guaranteed
* to be accepted and the {@code quietPeriod} will start over.
* If a task is submitted during the {@code shutdownQuietPeriod}, it is guaranteed
* to be accepted and the {@code shutdownQuietPeriod} will start over.
* <p>By default, this is set to
* {@link LoopResources#DEFAULT_SHUTDOWN_QUIET_PERIOD} which is 2 seconds but
* can also be overridden with the system property
@ -189,7 +189,7 @@ public class ReactorResourceFactory implements InitializingBean, DisposableBean @@ -189,7 +189,7 @@ public class ReactorResourceFactory implements InitializingBean, DisposableBean
* @see #setShutdownQuietPeriod(Duration)
*/
public void setShutdownTimeout(Duration shutdownTimeout) {
Assert.notNull(shutdownTimeout, "shutdownQuietPeriod should not be null");
Assert.notNull(shutdownTimeout, "shutdownTimeout should not be null");
this.shutdownTimeout = shutdownTimeout;
}

Loading…
Cancel
Save