title: Multithreaded Pipeline for Java(7)
body: <p>I'm building a summarizer and I need a pipeline implementation.
  I've used my own implementation, but as the work grows I see that it just won't cut.</p>
  
  <p>Is there a mature framework in java that provides me with the foundation (basically the synchronization logic)?</p>
  
  <p>I need to declare a stage, and each stage has workers, the workers process items and return results to the stage, which sends it to next stages (might fan out).</p>
  
  <p>The whole point of my implementation was to give me this foundation however it doesn't work properly (race condition which brings to a deadlock)</p>
  
  <p>I've tried getting the apache library (which is dead basically) but it doesn't have the feature to create stage workers. </p>