/** * Increment the counter atomically and return the new count * @return * @deprecated use {@link #rxIncrementAndGet} instead */ @Deprecated() public Observable<Long> incrementAndGetObservable() { io.vertx.rx.java.ObservableFuture<Long> resultHandler = io.vertx.rx.java.RxHelper.observableFuture(); incrementAndGet(resultHandler.toHandler()); return resultHandler; }
/** * Increment the counter atomically and return the new count * @return */ public Single<Long> rxIncrementAndGet() { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { incrementAndGet(fut); })); }
/** * Increment the counter atomically and return the new count * @return */ public Single<Long> rxIncrementAndGet() { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { incrementAndGet(fut); })); }