Exemplo n.º 1
0
  public void purge() {
    CacheEntry queueEntry = expirationQueue.peek();

    while ((queueEntry != null) && queueEntry.isExpired()) {
      super.remove(queueEntry.getKey());
      expirationQueue.remove();
      queueEntry = expirationQueue.peek();
    }
  }
Exemplo n.º 2
0
 @Override
 public void clear() {
   super.clear();
   expirationQueue.clear();
 }