<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-codegen</artifactId>
<version>${vertx.version}</version>
</dependency>
@VertxGen
public interface UserService {
void getUser(String id, Handler<AsyncResult<User>> resultHandler);
}
UserService userService = new UserServiceVertxEBProxy(vertx, "serviceAddress");
userService.getUser("123", res -> {
if (res.succeeded()) {
User user = res.result();
} else {
}
});