private void initializeHaManager(Handler<AsyncResult<Vertx>> resultHandler) { this.executeBlocking(fut -> { // Init the manager (i.e register listener and check the quorum) // after the event bus has been fully started and updated its state // it will have also set the clustered changed view handler on the ha manager haManager.init(); fut.complete(); }, false, ar -> { if (ar.succeeded()) { if (metrics != null) { metrics.vertxCreated(this); } resultHandler.handle(Future.succeededFuture(this)); } else { log.error("Failed to initialize HAManager", ar.cause()); resultHandler.handle(Future.failedFuture(ar.cause())); } }); }
private void initializeHaManager(Handler<AsyncResult<Vertx>> resultHandler) { this.executeBlocking(fut -> { // Init the manager (i.e register listener and check the quorum) // after the event bus has been fully started and updated its state // it will have also set the clustered changed view handler on the ha manager haManager.init(); fut.complete(); }, false, ar -> { if (ar.succeeded()) { if (metrics != null) { metrics.vertxCreated(this); } resultHandler.handle(Future.succeededFuture(this)); } else { log.error("Failed to initialize HAManager", ar.cause()); resultHandler.handle(Future.failedFuture(ar.cause())); } }); }