MCPcopy Create free account
hub / github.com/antlr/codebuff / recordRead

Method recordRead

output/java_guava/1.4.17/LocalCache.java:2630–2635  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 5

getMethod · 0.95
waitForLoadingValueMethod · 0.95
getMethod · 0.95
waitForLoadingValueMethod · 0.95
refreshMethod · 0.95

Calls 3

setAccessTimeMethod · 0.65
addMethod · 0.65
recordsAccessMethod · 0.45

Tested by

no test coverage detected