(long now)
| 2709 | } |
| 2710 | |
| 2711 | @GuardedBy("this") |
| 2712 | void expireEntries(long now) { |
| 2713 | drainRecencyQueue(); |
| 2714 | ReferenceEntry<K, V> e; |
| 2715 | while ((e = writeQueue.peek()) != null && map.isExpired(e, now)) { |
| 2716 | if (!removeEntry(e, e.getHash(), RemovalCause.EXPIRED)) { |
| 2717 | throw new AssertionError(); |
| 2718 | } |
| 2719 | } |
| 2720 | |
| 2721 | while ((e = accessQueue.peek()) != null && map.isExpired(e, now)) { |
| 2722 | if (!removeEntry(e, e.getHash(), RemovalCause.EXPIRED)) { |
| 2723 | throw new AssertionError(); |
| 2724 | } |
| 2725 | } |
| 2726 | } |
| 2727 | |
| 2728 | // eviction |
| 2729 |
no test coverage detected