public class ProxyThreadPools extends Object
| Modifier and Type | Field and Description |
|---|---|
private NioEventLoopGroup |
clientToProxyAcceptorPool
These
EventLoopGroups accept incoming connections to the
proxies. |
private NioEventLoopGroup |
clientToProxyWorkerPool
These
EventLoopGroups process incoming requests to the
proxies. |
private NioEventLoopGroup |
proxyToServerWorkerPool
These
EventLoopGroups 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
EventLoopGroups 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
EventLoopGroups 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
EventLoopGroups 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.