How to use setThreadPool() in Jetty

前端 未结 2 1060
暗喜
暗喜 2021-01-23 04:10

I wanted to see how to use the setThreadPool() functionality. Let\'s say my main class is the following:

import javax.servlet.SingleThreadModel;
imp         


        
2条回答
  •  梦毁少年i
    2021-01-23 04:24

    You can also use the following:

    server.setThreadPool(new ExecutorThreadPool(5, 10, 10, TimeUnit.SECONDS))
    

提交回复
热议问题