fm.http.server.RequestHandlerExecutionContextProvider
Given a Request return the Execution to pass into the RequestHandler
Given a Request return the Execution to pass into the RequestHandler
The initial (soft) size of our PriorityQueue
The number of threads
(Since version ) see corresponding Javadoc for more information.
This uses a PriorityBlockingQueue and ThreadPoolExecutor. The priority for each Runnable is the starting time of the Request such that Requests are processed in FIFO order. This prevents individual requests from being starved of CPU resources due to having lots of remote calls or Future callbacks since for older requests those callbacks will goto the front of the queue and execute first. The tradeoff being that queue operations take O(log N) time.
The number of threads
The initial (soft) size of our PriorityQueue