接口 ConfigurableJettyWebServerFactory
ConfigurableWebServerFactory
for Jetty-specific features.- 从以下版本开始:
- 2.0.0
- 作者:
- Brian Clozel, Moritz Halbritter
- 另请参阅:
-
方法概要
修饰符和类型方法说明void
addServerCustomizers
(JettyServerCustomizer... customizers) AddJettyServerCustomizer
s that will be applied to theServer
before it is started.void
setAcceptors
(int acceptors) Set the number of acceptor threads to use.void
setMaxConnections
(int maxConnections) Sets the maximum number of concurrent connections.void
setSelectors
(int selectors) Set the number of selector threads to use.void
setThreadPool
(org.eclipse.jetty.util.thread.ThreadPool threadPool) Set theThreadPool
that should be used by theServer
.void
setUseForwardHeaders
(boolean useForwardHeaders) Set if x-forward-* headers should be processed.从接口继承的方法 org.springframework.boot.web.server.ConfigurableWebServerFactory
setAddress, setCompression, setErrorPages, setHttp2, setPort, setServerHeader, setShutdown, setSsl, setSslBundles
从接口继承的方法 org.springframework.boot.web.server.ErrorPageRegistry
addErrorPages
-
方法详细资料
-
setAcceptors
void setAcceptors(int acceptors) Set the number of acceptor threads to use.- 参数:
acceptors
- the number of acceptor threads to use
-
setThreadPool
void setThreadPool(org.eclipse.jetty.util.thread.ThreadPool threadPool) Set theThreadPool
that should be used by theServer
. If set tonull
(default), theServer
creates aThreadPool
implicitly.- 参数:
threadPool
- the ThreadPool to be used
-
setSelectors
void setSelectors(int selectors) Set the number of selector threads to use.- 参数:
selectors
- the number of selector threads to use
-
setUseForwardHeaders
void setUseForwardHeaders(boolean useForwardHeaders) Set if x-forward-* headers should be processed.- 参数:
useForwardHeaders
- if x-forward headers should be used
-
addServerCustomizers
AddJettyServerCustomizer
s that will be applied to theServer
before it is started.- 参数:
customizers
- the customizers to add
-
setMaxConnections
void setMaxConnections(int maxConnections) Sets the maximum number of concurrent connections.- 参数:
maxConnections
- the maximum number of concurrent connections- 从以下版本开始:
- 3.2.0
-