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 16
16
17
17
package io .engagingspaces .vertx .dataloader ;
18
18
19
- import io .vertx .core .CompositeFuture ;
20
-
21
19
import java .util .Collection ;
22
20
23
21
/**
@@ -35,6 +33,7 @@ public interface BatchLoader<K> {
35
33
* Batch load the provided keys and return a composite future of the result.
36
34
*
37
35
* @param keys the list of keys to load
36
+ *
38
37
* @return the composite future
39
38
*/
40
39
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 16
16
17
17
package io .engagingspaces .vertx .dataloader ;
18
18
19
- import io .vertx .core .CompositeFuture ;
20
19
import io .vertx .core .Future ;
21
20
22
21
import 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 16
16
17
17
package io .engagingspaces .vertx .dataloader ;
18
18
19
- import io .vertx .core .CompositeFuture ;
20
19
import io .vertx .core .Future ;
21
20
import io .vertx .core .json .JsonObject ;
22
21
import io .vertx .ext .unit .junit .RunTestOnContext ;
You can’t perform that action at this time.
0 commit comments