Esempio n. 1
0
 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();
   }
 }
Esempio n. 2
0
 @Override
 public void handle(AsyncResult<DatagramSocket> event) {
   if (event.failed() && exceptionHandler != null) {
     exceptionHandler.handle(event.cause());
   }
 }