@@ -289,6 +289,7 @@ public static Uni<HttpResponse<Buffer>> put(String service, String path, JsonVal
289
289
* @param service The name of the service to invoke.
290
290
* @param path The service endpoint to invoke.
291
291
* @param body The request body with which to invoke the service endpoint.
292
+ * @return A Uni representing the continuation.
292
293
*/
293
294
public static Uni <Void > tell (String service , String path , JsonValue body ) {
294
295
return sidecar .tellPost (service , path , body ).chain (resp -> {
@@ -333,6 +334,7 @@ public static ActorRef ref(String type, String id) {
333
334
* Asynchronously remove all user-level and runtime state of an Actor.
334
335
*
335
336
* @param actor The Actor instance.
337
+ * @return A Uni representing the continuation.
336
338
*/
337
339
public static Uni <Void > remove (ActorRef actor ) {
338
340
return sidecar .actorDelete (actor .getType (), actor .getId ()).chain (resp -> {
@@ -348,6 +350,7 @@ public static Uni<Void> remove(ActorRef actor) {
348
350
* @param actor The target actor.
349
351
* @param path The actor method to invoke.
350
352
* @param args The arguments with which to invoke the actor method.
353
+ * @return A Uni representing the continuation.
351
354
*/
352
355
public static Uni <Void > tell (ActorRef actor , String path , JsonValue ... args ) {
353
356
return sidecar .actorTell (actor .getType (), actor .getId (), path , packArgs (args ))
@@ -512,6 +515,7 @@ public static Uni<Reminder[]> get(ActorRef actor, String reminderId) {
512
515
* @param period For periodic reminders, a String that is compatible with
513
516
* GoLang's Duration
514
517
* @param args The arguments with which to invoke the actor method.
518
+ * @return A Uni representing the continuation.
515
519
*/
516
520
public static Uni <Void > schedule (ActorRef actor , String path , String reminderId , Instant targetTime ,
517
521
Duration period , JsonValue ... args ) {
@@ -630,6 +634,7 @@ public static Uni<Integer> set(ActorRef actor, String key, JsonValue value) {
630
634
* @param actor The Actor instance.
631
635
* @param key The key to use to access the instance's state
632
636
* @param value The value to store
637
+ * @return A Uni representing the continuation
633
638
*/
634
639
public static Uni <Void > setV (ActorRef actor , String key , JsonValue value ) {
635
640
return sidecar .actorSetState (actor .getType (), actor .getId (), key , value ).chain (resp -> {
@@ -658,6 +663,7 @@ public static Uni<Integer> set(ActorRef actor, Map<String, JsonValue> updates) {
658
663
*
659
664
* @param actor The Actor instance.
660
665
* @param updates A map containing the state updates to perform
666
+ * @return A Uni representing the continuation.
661
667
*/
662
668
public static Uni <Void > setV (ActorRef actor , Map <String , JsonValue > updates ) {
663
669
if (updates .isEmpty ()) {
@@ -865,6 +871,7 @@ public static Uni<Integer> set(ActorRef actor, String submap, String key, JsonVa
865
871
* @param submap The name of the submap to update
866
872
* @param key The key in the submap to update
867
873
* @param value The value to store at `key/subkey`
874
+ * @return A Uni representing the continuation.
868
875
*/
869
876
public static Uni <Void > setV (ActorRef actor , String submap , String key , JsonValue value ) {
870
877
return sidecar .actorSetWithSubkeyState (actor .getType (), actor .getId (), submap , key , value ).chain (resp -> {
@@ -1076,9 +1083,10 @@ public static Uni<Subscription[]> getSubscription(ActorRef actor, String subscri
1076
1083
* @param actor The Actor instance to subscribe
1077
1084
* @param path The actor method to invoke on each event received on the topic
1078
1085
* @param topic The topic to which to subscribe
1086
+ * @return A Uni representing the continuation.
1079
1087
*/
1080
- public static void subscribe (ActorRef actor , String path , String topic ) {
1081
- subscribe (actor , path , topic , topic );
1088
+ public static Uni < Void > subscribe (ActorRef actor , String path , String topic ) {
1089
+ return subscribe (actor , path , topic , topic );
1082
1090
}
1083
1091
1084
1092
/**
@@ -1089,6 +1097,7 @@ public static void subscribe(ActorRef actor, String path, String topic) {
1089
1097
* the topic
1090
1098
* @param topic The topic to which to subscribe
1091
1099
* @param subscriptionId The subscriptionId to use for this subscription
1100
+ * @return A Uni representing the continuation.
1092
1101
*/
1093
1102
public static Uni <Void > subscribe (ActorRef actor , String path , String topic , String subscriptionId ) {
1094
1103
JsonObjectBuilder builder = factory .createObjectBuilder ();
@@ -1105,6 +1114,7 @@ public static Uni<Void> subscribe(ActorRef actor, String path, String topic, Str
1105
1114
* Create a topic using the default Kafka configuration options.
1106
1115
*
1107
1116
* @param topic The name of the topic to create
1117
+ * @return A Uni representing the continuation.
1108
1118
*/
1109
1119
public static Uni <Void > createTopic (String topic ) {
1110
1120
return sidecar .eventCreateTopic (topic , JsonValue .EMPTY_JSON_OBJECT ).chain (resp -> {
@@ -1117,6 +1127,7 @@ public static Uni<Void> createTopic(String topic) {
1117
1127
* Delete a topic.
1118
1128
*
1119
1129
* @param topic the name of the topic to delete
1130
+ * @return A Uni representing the continuation.
1120
1131
*/
1121
1132
public static Uni <Void > deleteTopic (String topic ) {
1122
1133
return sidecar .eventDeleteTopic (topic ).chain (resp -> {
@@ -1130,6 +1141,7 @@ public static Uni<Void> deleteTopic(String topic) {
1130
1141
*
1131
1142
* @param topic the name of the topic on which to publish
1132
1143
* @param event the event to publish
1144
+ * @return A Uni representing the continuation.
1133
1145
*/
1134
1146
public static Uni <Void > publish (String topic , JsonValue event ) {
1135
1147
return sidecar .eventPublish (topic , event ).chain (resp -> {
0 commit comments