接口 ConfigurableJettyWebServerFactory
ConfigurableWebServerFactory for Jetty-specific features.- 从以下版本开始:
- 2.0.0
- 作者:
- Brian Clozel, Moritz Halbritter
- 另请参阅:
-
方法概要
修饰符和类型方法说明voidaddServerCustomizers(JettyServerCustomizer... customizers) AddJettyServerCustomizers that will be applied to theServerbefore it is started.voidsetAcceptors(int acceptors) Set the number of acceptor threads to use.voidsetMaxConnections(int maxConnections) Sets the maximum number of concurrent connections.voidsetSelectors(int selectors) Set the number of selector threads to use.voidsetThreadPool(org.eclipse.jetty.util.thread.ThreadPool threadPool) Set theThreadPoolthat should be used by theServer.voidsetUseForwardHeaders(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 theThreadPoolthat should be used by theServer. If set tonull(default), theServercreates aThreadPoolimplicitly.- 参数:
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
AddJettyServerCustomizers that will be applied to theServerbefore 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
-