title: Persistent Blocking Queue in Java?
body: <p><strong>TL;DR; I need to know if there's a lib with persistent blocking queue that performatic.</strong></p>
  
  <p>I hava a classic producer/consumers program. They share a <code>LinkedBlockingQueue</code> to share the data, and I use <code>BlockingQueue#take</code> method in the Consumers, as I need them to live forever waiting for new elements.</p>
  
  <p>The problem is I have LOTS of data and I can't lose them. Even after the consumers stops, the producer can persist to generate some data. I am thinking about implementing my BlockingQueue ta uses <code>H2</code> behind to store/get the data after some threshold is reached. My main problem is that I need performance and I need to consume the elements in the order they are created.</p>
  
  <p>Is there an implementation of persistent blocking queue that I can use for something like this? If it doesn't, any sugestions for me to achieve something like this?</p>