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

Method loadSync

output/java_guava/1.4.18/LocalCache.java:2392–2399  ·  view source on GitHub ↗
(
      K key,
      int hash,
      LoadingValueReference<K, V> loadingValueReference,
      CacheLoader<? super K, V> loader)

Source from the content-addressed store, hash-verified

2390 // at most one of loadSync/loadAsync may be called for any given LoadingValueReference
2391
2392 V loadSync(
2393 K key,
2394 int hash,
2395 LoadingValueReference<K, V> loadingValueReference,
2396 CacheLoader<? super K, V> loader) throws ExecutionException {
2397 ListenableFuture<V> loadingFuture = loadingValueReference.loadFuture(key, loader);
2398 return getAndRecordStats(key, hash, loadingValueReference, loadingFuture);
2399 }
2400
2401 ListenableFuture<V> loadAsync(
2402 final K key,

Callers 1

lockedGetOrLoadMethod · 0.95

Calls 2

getAndRecordStatsMethod · 0.95
loadFutureMethod · 0.45

Tested by

no test coverage detected