|
|
|
@ -86,7 +86,7 @@ public class JettyWebServerFactoryCustomizer
|
|
|
|
|
.to((maxThreads) -> customizeThreadPool(factory, (threadPool) -> threadPool.setMaxThreads(maxThreads)));
|
|
|
|
|
propertyMapper.from(jettyProperties::getMinThreads).when(this::isPositive)
|
|
|
|
|
.to((minThreads) -> customizeThreadPool(factory, (threadPool) -> threadPool.setMinThreads(minThreads)));
|
|
|
|
|
propertyMapper.from(jettyProperties::getIdleTimeout).when(this::isPositive).to(
|
|
|
|
|
propertyMapper.from(jettyProperties::getIdleTimeout).whenNonNull().asInt(Duration::toMillis).to(
|
|
|
|
|
(idleTimeout) -> customizeThreadPool(factory, (threadPool) -> threadPool.setIdleTimeout(idleTimeout)));
|
|
|
|
|
propertyMapper.from(properties::getConnectionTimeout).whenNonNull()
|
|
|
|
|
.to((connectionTimeout) -> customizeConnectionTimeout(factory, connectionTimeout));
|
|
|
|
|