Package org.littleshoot.proxy.impl
Class ProxyThreadPools
java.lang.Object
org.littleshoot.proxy.impl.ProxyThreadPools
Encapsulates the thread pools used by the proxy. Contains the acceptor thread pool as well as the client-to-proxy and
proxy-to-server thread pools.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NioEventLoopGroupTheseEventLoopGroups accept incoming connections to the proxies.private final NioEventLoopGroupTheseEventLoopGroups process incoming requests to the proxies.private final NioEventLoopGroupTheseEventLoopGroups are used for making outgoing connections to servers. -
Constructor Summary
ConstructorsConstructorDescriptionProxyThreadPools(SelectorProvider selectorProvider, int incomingAcceptorThreads, int incomingWorkerThreads, int outgoingWorkerThreads, String serverGroupName, int serverGroupId) -
Method Summary
Modifier and TypeMethodDescriptionReturns all event loops (acceptor and worker thread pools) in this pool.
-
Field Details
-
clientToProxyAcceptorPool
TheseEventLoopGroups accept incoming connections to the proxies. A different EventLoopGroup is used for each TransportProtocol, since these have to be configured differently. -
clientToProxyWorkerPool
TheseEventLoopGroups process incoming requests to the proxies. A different EventLoopGroup is used for each TransportProtocol, since these have to be configured differently. -
proxyToServerWorkerPool
TheseEventLoopGroups are used for making outgoing connections to servers. A different EventLoopGroup is used for each TransportProtocol, since these have to be configured differently.
-
-
Constructor Details
-
ProxyThreadPools
public ProxyThreadPools(SelectorProvider selectorProvider, int incomingAcceptorThreads, int incomingWorkerThreads, int outgoingWorkerThreads, String serverGroupName, int serverGroupId)
-
-
Method Details
-
getAllEventLoops
Returns all event loops (acceptor and worker thread pools) in this pool. -
getClientToProxyAcceptorPool
-
getClientToProxyWorkerPool
-
getProxyToServerWorkerPool
-