Java data structure that signals that a queue has ended/finished?
<p>I am in search for a Java 7 data structure that behaves like a <code>java.util.Queue</code> and that additionally has the concept of "final item has been removed".</p>

<p>For example, a concept such as the following one shall be expressible:</p>

<pre><code>while(!endingQueue.isFinished()) {
    Element e = endingQueue.remove()
    doSomethingWith(e);
}
</code></pre>
