Merge branch '1.5.x'
This commit is contained in:
@@ -66,6 +66,7 @@ import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletCon
|
||||
import org.springframework.boot.context.embedded.undertow.UndertowBuilderCustomizer;
|
||||
import org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainerFactory;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.DeprecatedConfigurationProperty;
|
||||
import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
||||
import org.springframework.boot.web.servlet.ServletContextInitializer;
|
||||
import org.springframework.context.EnvironmentAware;
|
||||
@@ -1216,6 +1217,7 @@ public class ServerProperties
|
||||
/**
|
||||
* Number of buffer per region.
|
||||
*/
|
||||
@Deprecated
|
||||
private Integer buffersPerRegion;
|
||||
|
||||
/**
|
||||
@@ -1243,6 +1245,7 @@ public class ServerProperties
|
||||
this.bufferSize = bufferSize;
|
||||
}
|
||||
|
||||
@DeprecatedConfigurationProperty(reason = "The property is not used by Undertow. See https://issues.jboss.org/browse/UNDERTOW-587 for details")
|
||||
public Integer getBuffersPerRegion() {
|
||||
return this.buffersPerRegion;
|
||||
}
|
||||
@@ -1284,9 +1287,6 @@ public class ServerProperties
|
||||
if (this.bufferSize != null) {
|
||||
factory.setBufferSize(this.bufferSize);
|
||||
}
|
||||
if (this.buffersPerRegion != null) {
|
||||
factory.setBuffersPerRegion(this.buffersPerRegion);
|
||||
}
|
||||
if (this.ioThreads != null) {
|
||||
factory.setIoThreads(this.ioThreads);
|
||||
}
|
||||
|
||||
@@ -110,8 +110,6 @@ public class UndertowEmbeddedServletContainerFactory
|
||||
|
||||
private Integer bufferSize;
|
||||
|
||||
private Integer buffersPerRegion;
|
||||
|
||||
private Integer ioThreads;
|
||||
|
||||
private Integer workerThreads;
|
||||
@@ -236,9 +234,6 @@ public class UndertowEmbeddedServletContainerFactory
|
||||
if (this.bufferSize != null) {
|
||||
builder.setBufferSize(this.bufferSize);
|
||||
}
|
||||
if (this.buffersPerRegion != null) {
|
||||
builder.setBuffersPerRegion(this.buffersPerRegion);
|
||||
}
|
||||
if (this.ioThreads != null) {
|
||||
builder.setIoThreads(this.ioThreads);
|
||||
}
|
||||
@@ -544,8 +539,9 @@ public class UndertowEmbeddedServletContainerFactory
|
||||
this.bufferSize = bufferSize;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setBuffersPerRegion(Integer buffersPerRegion) {
|
||||
this.buffersPerRegion = buffersPerRegion;
|
||||
|
||||
}
|
||||
|
||||
public void setIoThreads(Integer ioThreads) {
|
||||
|
||||
Reference in New Issue
Block a user