@@ -25,11 +25,12 @@ import java.util.concurrent.CompletableFuture
25
25
* Reified version of [QueryGateway.query]
26
26
* which expects a collection as a response using [org.axonframework.messaging.responsetypes.MultipleInstancesResponseType]
27
27
* @param query Query to send
28
- * @param [Q] the type of payload of the query
29
- * @param [R] the type of result of the query
28
+ * @param Q the type of payload of the query
29
+ * @param R the type of result of the query
30
30
* @return [CompletableFuture] wrapping the result of the query
31
31
* @see QueryGateway.query
32
32
* @see ResponseTypes
33
+ * @since 0.1.0
33
34
*/
34
35
inline fun <reified R , reified Q > QueryGateway.queryMany (query : Q ): CompletableFuture <List <R >> {
35
36
return this .query(query, ResponseTypes .multipleInstancesOf(R ::class .java))
@@ -40,11 +41,12 @@ inline fun <reified R, reified Q> QueryGateway.queryMany(query: Q): CompletableF
40
41
* which expects a collection as a response using [org.axonframework.messaging.responsetypes.MultipleInstancesResponseType]
41
42
* @param queryName Name of the query
42
43
* @param query Query to send
43
- * @param [Q] the type of payload of the query
44
- * @param [R] the type of result of the query
44
+ * @param Q the type of payload of the query
45
+ * @param R the type of result of the query
45
46
* @return [CompletableFuture] wrapping the result of the query
46
47
* @see QueryGateway.query
47
48
* @see ResponseTypes
49
+ * @since 0.1.0
48
50
*/
49
51
inline fun <reified R , reified Q > QueryGateway.queryMany (queryName : String , query : Q ): CompletableFuture <List <R >> {
50
52
return this .query(queryName, query, ResponseTypes .multipleInstancesOf(R ::class .java))
@@ -54,11 +56,12 @@ inline fun <reified R, reified Q> QueryGateway.queryMany(queryName: String, quer
54
56
* Reified version of [QueryGateway.query]
55
57
* which expects a single object as a response using [org.axonframework.messaging.responsetypes.InstanceResponseType]
56
58
* @param query Query to send
57
- * @param [Q] the type of payload of the query
58
- * @param [R] the type of result of the query
59
+ * @param Q the type of payload of the query
60
+ * @param R the type of result of the query
59
61
* @return [CompletableFuture] wrapping the result of the query
60
62
* @see QueryGateway.query
61
63
* @see ResponseTypes
64
+ * @since 0.1.0
62
65
*/
63
66
inline fun <reified R , reified Q > QueryGateway.query (query : Q ): CompletableFuture <R > {
64
67
return this .query(query, ResponseTypes .instanceOf(R ::class .java))
@@ -69,11 +72,12 @@ inline fun <reified R, reified Q> QueryGateway.query(query: Q): CompletableFutur
69
72
* which expects a single object as a response using [org.axonframework.messaging.responsetypes.InstanceResponseType]
70
73
* @param queryName Name of the query
71
74
* @param query Query to send
72
- * @param [Q] the type of payload of the query
73
- * @param [R] the type of result of the query
75
+ * @param Q the type of payload of the query
76
+ * @param R the type of result of the query
74
77
* @return [CompletableFuture] wrapping the result of the query
75
78
* @see QueryGateway.query
76
79
* @see ResponseTypes
80
+ * @since 0.1.0
77
81
*/
78
82
inline fun <reified R , reified Q > QueryGateway.query (queryName : String , query : Q ): CompletableFuture <R > {
79
83
return this .query(queryName, query, ResponseTypes .instanceOf(R ::class .java))
@@ -83,11 +87,12 @@ inline fun <reified R, reified Q> QueryGateway.query(queryName: String, query: Q
83
87
* Reified version of [QueryGateway.query]
84
88
* which expects an Optional object as a response using [org.axonframework.messaging.responsetypes.OptionalResponseType]
85
89
* @param query Query to send
86
- * @param [Q] the type of payload of the query
87
- * @param [R] the type of result of the query
90
+ * @param Q the type of payload of the query
91
+ * @param R the type of result of the query
88
92
* @return [CompletableFuture] wrapping the result of the query
89
93
* @see QueryGateway.query
90
94
* @see ResponseTypes
95
+ * @since 0.1.0
91
96
*/
92
97
inline fun <reified R , reified Q > QueryGateway.queryOptional (query : Q ): CompletableFuture <Optional <R >> {
93
98
return this .query(query, ResponseTypes .optionalInstanceOf(R ::class .java))
@@ -98,11 +103,12 @@ inline fun <reified R, reified Q> QueryGateway.queryOptional(query: Q): Completa
98
103
* which expects an Optional object as a response using [org.axonframework.messaging.responsetypes.OptionalResponseType]
99
104
* @param queryName Name of the query
100
105
* @param query Query to send
101
- * @param [Q] the type of payload of the query
102
- * @param [R] the type of result of the query
106
+ * @param Q the type of payload of the query
107
+ * @param R the type of result of the query
103
108
* @return [CompletableFuture] wrapping the result of the query
104
109
* @see QueryGateway.query
105
110
* @see ResponseTypes
111
+ * @since 0.1.0
106
112
*/
107
113
inline fun <reified R , reified Q > QueryGateway.queryOptional (queryName : String , query : Q ): CompletableFuture <Optional <R >> {
108
114
return this .query(queryName, query, ResponseTypes .optionalInstanceOf(R ::class .java))
0 commit comments