Skip to content

Commit

Permalink
Merge branch '1.5.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Oct 18, 2016
2 parents f17be6e + a416f49 commit a4bc341
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
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;
Expand Down Expand Up @@ -1216,6 +1217,7 @@ public static class Undertow {
/**
* Number of buffer per region.
*/
@Deprecated
private Integer buffersPerRegion;

/**
Expand Down Expand Up @@ -1243,6 +1245,7 @@ public void setBufferSize(Integer bufferSize) {
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;
}
Expand Down Expand Up @@ -1284,9 +1287,6 @@ void customizeUndertow(final ServerProperties 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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ public class UndertowEmbeddedServletContainerFactory

private Integer bufferSize;

private Integer buffersPerRegion;

private Integer ioThreads;

private Integer workerThreads;
Expand Down Expand Up @@ -236,9 +234,6 @@ private Builder createBuilder(int port) {
if (this.bufferSize != null) {
builder.setBufferSize(this.bufferSize);
}
if (this.buffersPerRegion != null) {
builder.setBuffersPerRegion(this.buffersPerRegion);
}
if (this.ioThreads != null) {
builder.setIoThreads(this.ioThreads);
}
Expand Down Expand Up @@ -544,8 +539,9 @@ public void setBufferSize(Integer bufferSize) {
this.bufferSize = bufferSize;
}

@Deprecated
public void setBuffersPerRegion(Integer buffersPerRegion) {
this.buffersPerRegion = buffersPerRegion;

}

public void setIoThreads(Integer ioThreads) {
Expand Down

0 comments on commit a4bc341

Please sign in to comment.