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