0
我使用Jetty 8與其ProxyServlet,並想知道什麼是最快的線程池使用,ExecutorThreadPool或QueuedThreadPool?碼頭8:proxyservlet使用ExecutorThreadPool或QueuedThreadPool
這是我目前使用的代碼:
Server httpProxy = new Server();
SelectChannelConnector connector = new SelectChannelConnector();
connector.setPort(8087);
connector.setMaxIdleTime(400000);
connector.setThreadPool(new ExecutorThreadPool(256));
httpProxy.addConnector(connector);