title: Priority queue with level-based notification in Java
body: <p>Is there a kind of <code>PriorityBlockingQueue</code> in Java that allows waiting (like the <code>take()</code> method does) for a certain level of elements instead of one element? I.e. "notify me when the level reaches 500 elements"?</p>