public class ProxyThreadPools extends Object
Modifier and Type | Field and Description |
---|---|
private NioEventLoopGroup |
clientToProxyAcceptorPool
These
EventLoopGroup s accept incoming connections to the
proxies. |
private NioEventLoopGroup |
clientToProxyWorkerPool
These
EventLoopGroup s process incoming requests to the
proxies. |
private NioEventLoopGroup |
proxyToServerWorkerPool
These
EventLoopGroup s are used for making outgoing
connections to servers. |
Constructor and Description |
---|
ProxyThreadPools(SelectorProvider selectorProvider,
int incomingAcceptorThreads,
int incomingWorkerThreads,
int outgoingWorkerThreads,
String serverGroupName,
int serverGroupId) |
Modifier and Type | Method and Description |
---|---|
List<EventLoopGroup> |
getAllEventLoops()
Returns all event loops (acceptor and worker thread pools) in this pool.
|
NioEventLoopGroup |
getClientToProxyAcceptorPool() |
NioEventLoopGroup |
getClientToProxyWorkerPool() |
NioEventLoopGroup |
getProxyToServerWorkerPool() |
private final NioEventLoopGroup clientToProxyAcceptorPool
EventLoopGroup
s accept incoming connections to the
proxies. A different EventLoopGroup is used for each
TransportProtocol, since these have to be configured differently.private final NioEventLoopGroup clientToProxyWorkerPool
EventLoopGroup
s process incoming requests to the
proxies. A different EventLoopGroup is used for each
TransportProtocol, since these have to be configured differently.private final NioEventLoopGroup proxyToServerWorkerPool
EventLoopGroup
s are used for making outgoing
connections to servers. A different EventLoopGroup is used for each
TransportProtocol, since these have to be configured differently.public ProxyThreadPools(SelectorProvider selectorProvider, int incomingAcceptorThreads, int incomingWorkerThreads, int outgoingWorkerThreads, String serverGroupName, int serverGroupId)
public List<EventLoopGroup> getAllEventLoops()
public NioEventLoopGroup getClientToProxyAcceptorPool()
public NioEventLoopGroup getClientToProxyWorkerPool()
public NioEventLoopGroup getProxyToServerWorkerPool()
Copyright © 2009–2017 LittleShoot. All rights reserved.