You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/dataloader/ValueCache.java
+7-7
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,11 @@
15
15
* <p>
16
16
* It differs from {@link CacheMap} which is in fact a cache of promised values aka {@link CompletableFuture}<V>'s.
17
17
* <p>
18
-
* {@link ValueCache} is more suited to be a wrapper of a long-lived or externallly cached values. {@link CompletableFuture}s cant
18
+
* {@link ValueCache} is more suited to be a wrapper of a long-lived or externally cached values. {@link CompletableFuture}s can't
19
19
* be easily placed in an external cache outside the JVM say, hence the need for the {@link ValueCache}.
20
20
* <p>
21
21
* {@link DataLoader}s use a two stage cache strategy if caching is enabled. If the {@link CacheMap} already has the promise to a value
22
-
* that is used. If not then the {@link ValueCache} is asked for a value, if it has one then that is returned (and cached as a promise in the {@link CacheMap}.
22
+
* that is used. If not then the {@link ValueCache} is asked for a value, if it has one then that is returned (and cached as a promise in the {@link CacheMap}).
23
23
* <p>
24
24
* If there is no value then the key is queued and loaded via the {@link BatchLoader} calls. The returned values will then be stored in
25
25
* the {@link ValueCache} and the promises to those values are also stored in the {@link CacheMap}.
@@ -29,7 +29,7 @@
29
29
* out of the box.
30
30
* <p>
31
31
* The API signature uses {@link CompletableFuture}s because the backing implementation MAY be a remote external cache
32
-
* and hence exceptions may happen in retrieving values and they may take time to complete.
32
+
* and hence exceptions may happen in retrieving values, and they may take time to complete.
0 commit comments