title: Java Collection implementaiton with timeout of the elements
body: <p>Is there some collection implementation supporting expiration of the elements.</p>
  
  <p>For example:</p>
  
  <pre><code>Collection&lt;User&gt; cachedUsers = new ExpirableList&lt;User&gt;(10000);
  </code></pre>
  
  <p>where </p>
  
  <pre><code>public ExpirableList(final long timeout){...}
  </code></pre>
  
  <p>And after given time (<code>10000ms</code> in this particular example), added elements will be removed from the collection. By using this, we will prevent overflow of our <code>cachedUsers</code> collection.</p>