Handling Exceptions for ThreadPoolExecutor
- by HonorGod
I have the following code snippet that basically scans through the list of task that needs to be executed and each task is then given to the executor for execution.
The JobExecutor intern creates another executor (for doing db stuff...reading and writing data to queue) and completes the task.
JobExecutor returns a Future for the tasks submitted.…