title: How to create a stream.parallel ItemReader in spring-batch?
body: <p>How can I use the new java 8 streams.parallel api in <code>spring-batch</code> <code>ItemReader</code>?</p>
  
  <pre><code>list.stream().parallel().forEach(file -&gt; readLines(file));
  </code></pre>
  
  <p>Typically, an ItemReader reads all lines from a file up to a defined chunk size, then passes the chunked list to an itemwriter. And when the writer finished, the next chunk is read.</p>
  
  <p>I want this process of reading+writing to be using the java8 stream.parallel api. Is that possible?</p>