${message.body()}") message.reply("pong") } // Wait until the consumer has properly registered asyncResult<Void> { h -> consumer.completionHandler(h) } // Send a message and wait for a reply val reply = asyncResult<Message<String >> { h -> vertx.eventBus().send("a.b.c", "ping", h) } println("Reply received: ${reply.body()}")
Reactive Microservices in Java https: //goo.gl/ep6yB9 https: //youtu.be/ApGNp4uHKdY 8 Microservices réactifs avec Eclipse Vert.x et Kubernetes 9 Guide to async programming with Vert.x for Java developers https: //goo.gl/AcWW3A