Computes or retrieves a replacement value corresponding to an already-cached key. This method is called when an existing cache entry is refreshed by CacheBuilder#refreshAfterWrite, or through a call to LoadingCache#refresh. This implementation synchronously delegates to {
(K key, V oldValue)
| 92 | */ |
| 93 | |
| 94 | @GwtIncompatible // Futures |
| 95 | public ListenableFuture<V> reload(K key, V oldValue) throws Exception { |
| 96 | checkNotNull(key); |
| 97 | checkNotNull(oldValue); |
| 98 | return Futures.immediateFuture(load(key)); |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Computes or retrieves the values corresponding to {@code keys}. This method is called by |
no test coverage detected