title: Should I use ExecutorService?
body: <p>In my application, I am executing a bunch of SQL queries like a job and the details of the execution, which are inserted into a table. As soon as any record is inserted,the listener should pick it up and start monitoring the execution status and update the status in the same table.</p>
  
  <p>My front-end is ready and till now I am able to execute the job(multiple queries) and insert the details in table.  Now I want to capture the status of execution and also I should be able to end ,pause ,restart the execution.</p>
  
  <p>While I am going through multithreading part, I came across ExecutorService.</p>
  
  <p><strong><em>My question is should I do this using ExecutorService? or is there any other way?</em></strong></p>
  
  <p>Please share any tutorial links.</p>