-
Method Summary
void
void
Set the number of acceptor threads to use.
void
Sets the maximum number of concurrent connections.
void
Set the number of selector threads to use.
void
setThreadPool(org.eclipse.jetty.util.thread.ThreadPool threadPool)
Set the ThreadPool
that should be used by the Server
.
void
Set if x-forward-* headers should be processed.
-
Method Details
-
setAcceptors
void setAcceptors(int acceptors)
Set the number of acceptor threads to use.
- Parameters:
acceptors
- the number of acceptor threads to use
-
setThreadPool
void setThreadPool(org.eclipse.jetty.util.thread.ThreadPool threadPool)
Set the ThreadPool
that should be used by the Server
. If set to
null
(default), the Server
creates a ThreadPool
implicitly.
- Parameters:
threadPool
- the ThreadPool to be used
-
setSelectors
void setSelectors(int selectors)
Set the number of selector threads to use.
- Parameters:
selectors
- the number of selector threads to use
-
-
addServerCustomizers
- Parameters:
customizers
- the customizers to add
-
setMaxConnections
void setMaxConnections(int maxConnections)
Sets the maximum number of concurrent connections.
- Parameters:
maxConnections
- the maximum number of concurrent connections
- Since:
- 3.2.0