/** * Get the {@link io.vertx.rxjava.core.shareddata.AsyncMap} with the specified name. When clustered, the map is accessible to all nodes in the cluster * and data put into the map from any node is visible to to any other node. * <p> * <strong>WARNING</strong>: In clustered mode, asynchronous shared maps rely on distributed data structures provided by the cluster manager. * Beware that the latency relative to asynchronous shared maps operations can be much higher in clustered than in local mode. * </p> * @param name the name of the map * @return * @deprecated use {@link #rxGetAsyncMap} instead */ @Deprecated() public <K, V> Observable<io.vertx.rxjava.core.shareddata.AsyncMap<K, V>> getAsyncMapObservable(String name) { io.vertx.rx.java.ObservableFuture<io.vertx.rxjava.core.shareddata.AsyncMap<K, V>> resultHandler = io.vertx.rx.java.RxHelper.observableFuture(); getAsyncMap(name, resultHandler.toHandler()); return resultHandler; }
/** * Get the {@link io.vertx.rxjava.core.shareddata.AsyncMap} with the specified name. When clustered, the map is accessible to all nodes in the cluster * and data put into the map from any node is visible to to any other node. * <p> * <strong>WARNING</strong>: In clustered mode, asynchronous shared maps rely on distributed data structures provided by the cluster manager. * Beware that the latency relative to asynchronous shared maps operations can be much higher in clustered than in local mode. * </p> * @param name the name of the map * @return */ public <K, V> Single<io.vertx.rxjava.core.shareddata.AsyncMap<K, V>> rxGetAsyncMap(String name) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { getAsyncMap(name, fut); })); }
/** * Get the {@link io.vertx.rxjava.core.shareddata.AsyncMap} with the specified name. When clustered, the map is accessible to all nodes in the cluster * and data put into the map from any node is visible to to any other node. * <p> * <strong>WARNING</strong>: In clustered mode, asynchronous shared maps rely on distributed data structures provided by the cluster manager. * Beware that the latency relative to asynchronous shared maps operations can be much higher in clustered than in local mode. * </p> * @param name the name of the map * @return */ public <K, V> Single<io.vertx.rxjava.core.shareddata.AsyncMap<K, V>> rxGetAsyncMap(String name) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { getAsyncMap(name, fut); })); }