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: README.md
+70-7Lines changed: 70 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,19 +49,85 @@ and Nicholas Schrock (@schrockn) from [Facebook](https://www.facebook.com/), the
49
49
- Schedule a load request in queue for batching
50
50
- Add load requests from anywhere in code
51
51
- Request returns a [`CompleteableFuture<V>`](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html) of the requested value
52
-
- Can create multiple requests at once, returns a `CombinedFutures` object
52
+
- Can create multiple requests at once
53
53
- Caches load requests, so data is only fetched once
54
-
- Can clear individual cache keys, so data is fetched on next batch queue dispatch
54
+
- Can clear individual cache keys, so data is re-fetched on next batch queue dispatch
55
55
- Can prime the cache with key/values, to avoid data being fetched needlessly
56
56
- Can configure cache key function with lambda expression to extract cache key from complex data loader key types
57
-
- Dispatch load request queue after batch is prepared, also returns `CombinedFutures`
58
57
- Individual batch futures complete / resolve as batch is processed
59
-
-`CombinedFutures` results are ordered according to insertion order of load requests
58
+
-Results are ordered according to insertion order of load requests
60
59
- Deals with partial errors when a batch future fails
61
60
- Can disable batching and/or caching in configuration
62
61
- Can supply your own [`CacheMap<K, V>`](https://github.com/bbakerman/java-dataloader/blob/master/src/main/java/io/engagingspaces/vertx/dataloader/CacheMap.java) implementations
63
62
- Has very high test coverage (see [Acknowledgements](#acknowlegdements))
64
63
64
+
## Examples
65
+
66
+
A `DataLoader` object requires a `BatchLoader` function that is responsible for loading a promise of values given
0 commit comments