Handlers - rapatao/vertx-java-helper GitHub Wiki
Provides a utility class to encapsulate and process AsyncResult of Vert.x.
Example of usage:
Future<String> future = ...
...
future.setHandler(AsyncHandler.<String>builder()
.onSuccess(result -> System.out.println(result))
.onFail(exception -> System.err.println(exception.getMessage()))
.onComplete(() -> System.out.println("complete"))
.build());