/** * Optional method which can be called to indicate when the registration has been propagated across the cluster. * @return * @deprecated use {@link #rxCompletionHandler} instead */ @Deprecated() public Observable<Void> completionHandlerObservable() { io.vertx.rx.java.ObservableFuture<Void> completionHandler = io.vertx.rx.java.RxHelper.observableFuture(); completionHandler(completionHandler.toHandler()); return completionHandler; }
/** * Optional method which can be called to indicate when the registration has been propagated across the cluster. * @return */ public Single<Void> rxCompletionHandler() { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { completionHandler(fut); })); }
/** * Optional method which can be called to indicate when the registration has been propagated across the cluster. * @return */ public Single<Void> rxCompletionHandler() { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { completionHandler(fut); })); }