public class ThreadPoolConfiguration extends Object
EventLoopGroup
used by the proxy.Modifier and Type | Field and Description |
---|---|
private int |
acceptorThreads |
private int |
clientToProxyWorkerThreads |
private int |
proxyToServerWorkerThreads |
Constructor and Description |
---|
ThreadPoolConfiguration() |
Modifier and Type | Method and Description |
---|---|
int |
getAcceptorThreads() |
int |
getClientToProxyWorkerThreads() |
int |
getProxyToServerWorkerThreads() |
ThreadPoolConfiguration |
withAcceptorThreads(int acceptorThreads)
Set the number of acceptor threads to create.
|
ThreadPoolConfiguration |
withClientToProxyWorkerThreads(int clientToProxyWorkerThreads)
Set the number of client-to-proxy worker threads to create.
|
ThreadPoolConfiguration |
withProxyToServerWorkerThreads(int proxyToServerWorkerThreads)
Set the number of proxy-to-server worker threads to create.
|
private int acceptorThreads
private int clientToProxyWorkerThreads
private int proxyToServerWorkerThreads
public int getClientToProxyWorkerThreads()
public ThreadPoolConfiguration withClientToProxyWorkerThreads(int clientToProxyWorkerThreads)
ServerGroup.DEFAULT_INCOMING_WORKER_THREADS
.clientToProxyWorkerThreads
- number of client-to-proxy worker threads to createpublic int getAcceptorThreads()
public ThreadPoolConfiguration withAcceptorThreads(int acceptorThreads)
ServerGroup.DEFAULT_INCOMING_ACCEPTOR_THREADS
.acceptorThreads
- number of acceptor threads to createpublic int getProxyToServerWorkerThreads()
public ThreadPoolConfiguration withProxyToServerWorkerThreads(int proxyToServerWorkerThreads)
ServerGroup.DEFAULT_OUTGOING_WORKER_THREADS
.proxyToServerWorkerThreads
- number of proxy-to-server worker threads to createCopyright © 2009–2019 LittleShoot. All rights reserved.