title: Executor Service framework with consumer code
body: <p>I am planning to write code that's similar to producer and consumer using <code>ExecutorService</code>  with a fixed threadpool and IBM MQ messaging.</p>
  
  <p>Suppose as consumer I created 10 fixed threads. How it will handle it if I place 10 messages in consumer queue? How 10 consumer worker threads will cover below scenarios?</p>
  
  <ol>
  <li><p>each worker thread take single message synchronously and process the message?</p></li>
  <li><p>each consumer worker threads  take all these 10 message like 1 worker thread per one message?</p></li>
  <li><p>After reading this message as second scenario above ,How each thread call executor service.Is it done concurrenly or synchronously.</p></li>
  <li><p>if there are 20 messages in queue,how consumer worker thread takes these message,each thread takes 2 messages? If it takes one message per one thread what will happen to 
  other 10 messages?</p></li>
  </ol>
  
  <p>While processing the above scenarios there is webservice call and internal api method calls but those are  synchronous methods. So is there any use if i implement this class to process the code concurrently?</p>