File tree Expand file tree Collapse file tree 5 files changed +66
-4
lines changed
main/java/io/engagingspaces/vertx/dataloader
test/java/io/engagingspaces/vertx/dataloader Expand file tree Collapse file tree 5 files changed +66
-4
lines changed Original file line number Diff line number Diff line change 1616
1717package io .engagingspaces .vertx .dataloader ;
1818
19- import io .vertx .core .CompositeFuture ;
20-
2119import java .util .Collection ;
2220
2321/**
@@ -35,6 +33,7 @@ public interface BatchLoader<K> {
3533 * Batch load the provided keys and return a composite future of the result.
3634 *
3735 * @param keys the list of keys to load
36+ *
3837 * @return the composite future
3938 */
4039 CompositeFuture load (Collection <K > keys );
Original file line number Diff line number Diff line change 1+ package io .engagingspaces .vertx .dataloader ;
2+
3+ import java .util .List ;
4+ import java .util .function .Consumer ;
5+
6+ /**
7+ * TODO: Document this class / interface here
8+ *
9+ * @since v0.x
10+ */
11+ public class CompositeFuture {
12+
13+ public CompositeFuture setHandler (Consumer <CompositeFuture > handler ) {
14+ return this ;
15+ }
16+
17+ public boolean succeeded () {
18+ throw new UnsupportedOperationException ("Not implemented" );
19+ }
20+
21+ public Throwable cause () {
22+ throw new UnsupportedOperationException ("Not implemented" );
23+ }
24+
25+ public boolean succeeded (int index ) {
26+ throw new UnsupportedOperationException ("Not implemented" );
27+ }
28+
29+ public Throwable cause (int index ) {
30+ throw new UnsupportedOperationException ("Not implemented" );
31+ }
32+
33+ public CompositeFuture result () {
34+ return this ;
35+ }
36+
37+ public <V > V resultAt (int index ) {
38+ throw new UnsupportedOperationException ("Not implemented" );
39+ }
40+
41+ public static <T > CompositeFuture join (List <T > objects ) {
42+ throw new UnsupportedOperationException ("Not implemented" );
43+ }
44+
45+ public <T > T list () {
46+ throw new UnsupportedOperationException ("Not implemented" );
47+ }
48+
49+ public <T > T size () {
50+ throw new UnsupportedOperationException ("Not implemented" );
51+ }
52+
53+ public boolean isComplete () {
54+ throw new UnsupportedOperationException ("Not implemented" );
55+ }
56+ }
Original file line number Diff line number Diff line change 1616
1717package io .engagingspaces .vertx .dataloader ;
1818
19- import io .vertx .core .CompositeFuture ;
2019import io .vertx .core .Future ;
2120
2221import java .util .Collections ;
Original file line number Diff line number Diff line change 1+ package io .engagingspaces .vertx .dataloader ;
2+
3+ /**
4+ * TODO: Document this class / interface here
5+ *
6+ * @since v0.x
7+ */
8+ public class FutureKit {
9+ }
Original file line number Diff line number Diff line change 1616
1717package io .engagingspaces .vertx .dataloader ;
1818
19- import io .vertx .core .CompositeFuture ;
2019import io .vertx .core .Future ;
2120import io .vertx .core .json .JsonObject ;
2221import io .vertx .ext .unit .junit .RunTestOnContext ;
You can’t perform that action at this time.
0 commit comments