title: Synchronous EventBus message send in Vertx
body: <p>I want to send multiple messages via EventBus in Vertx but synchronous. I want to send a message, wait for it, and sent the next ones as well. The address it's the same. It's by default how i do it? or it's necessary to use, maybe, an executeBlocking code?</p>
  
  <p>Here is my code.</p>
  
  <pre><code>public class EventBusSync {
      private Vertx vertx = Vertx.vertx();
      private static final String SERVICE_ADDRESS =  "service.worker";
  
    public void sentViaEvBus() {
      String message1 = "message1";
      String message2 = "message2";
  
      String reply1 = sendCommand(SERVICE_ADDRESS,message1);
      String reply2 = sendCommand(SERVICE_ADDRESS,message2);
  
    }
  
    private String sendCommand(String address, String command) {
     String message;
     vertx.eventBus().send(address,command, handler -&gt; {
      if(handler.succeeded()) {
       log.info("success");
     } else {
       log.error("error",handler.cause());
       throw new RuntimeException("ERROR");
      }
      message = handler.result.body();
      });
   return message;
    }
   }
  </code></pre>
  
  <p>So here if the first command it's sent and something it's happening I want to interrupt the next eventbus sending.</p>
  
  <p>Thanks</p>