title: Execute multiple queries in parallel via Streams
body: <p>I am having the following method:</p>
  
  <pre><code>public String getResult() {
  
          List&lt;String&gt; serversList = getServerListFromDB();
  
          List&lt;String&gt; appList = getAppListFromDB();
  
          List&lt;String&gt; userList = getUserFromDB();
  
          return getResult(serversList, appList, userList);
      }
  </code></pre>
  
  <p>Here I am calling three method sequentially which in turns hits the DB and fetch me results, then I do post processing on the results I got from the DB hits. I know how to call these three methods concurrently via use of <code>Threads</code>. But I would like to use Java 8 <code>Parallel Stream</code> to achieve this. Can someone please guide me how to achieve the same via Parallel Streams? </p>
  
  <p><strong>EDIT</strong> I just want to call the methods in parallel via Stream.</p>
  
  <pre><code>private void getInformation() {
      method1();
      method2();
      method3();
      method4();
      method5();
  }
  </code></pre>