private void checkAndSetStatus(AsyncResult<String> result, Future<Void> start) { ctr--; if (result.failed()) { start.fail(result.cause()); failed = true; printError(result.cause()); } else if (ctr == 0) { start.complete(); } }
@Override public void handle(AsyncResult<DatagramSocket> event) { if (event.failed() && exceptionHandler != null) { exceptionHandler.handle(event.cause()); } }