/** * Get a value from the map, asynchronously. * @param k the key * @return * @deprecated use {@link #rxGet} instead */ @Deprecated() public Observable<V> getObservable(K k) { io.vertx.rx.java.ObservableFuture<V> resultHandler = io.vertx.rx.java.RxHelper.observableFuture(); get(k, resultHandler.toHandler()); return resultHandler; }
/** * Get a value from the map, asynchronously. * @param k the key * @return */ public Single<V> rxGet(K k) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { get(k, fut); })); }
/** * Get a value from the map, asynchronously. * @param k the key * @return */ public Single<V> rxGet(K k) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { get(k, fut); })); }