Records the relative order in which this read was performed by adding entry to the recency queue. At write-time, or when the queue is full past the threshold, the queue will be drained and the entries therein processed. Note: locked reads should use #recordLockedRead.
(ReferenceEntry<K, V> entry, long now)
| 2628 | */ |
| 2629 | |
| 2630 | void recordRead(ReferenceEntry<K, V> entry, long now) { |
| 2631 | if (map.recordsAccess()) { |
| 2632 | entry.setAccessTime(now); |
| 2633 | } |
| 2634 | recencyQueue.add(entry); |
| 2635 | } |
| 2636 | |
| 2637 | /** |
| 2638 | * Updates the eviction metadata that {@code entry} was just read. This currently amounts to |
no test coverage detected