/** * Get the cluster wide map with the specified name. 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. * @param name the name of the map * @return * @deprecated use {@link #rxGetClusterWideMap} instead */ @Deprecated() public <K, V> Observable<io.vertx.rxjava.core.shareddata.AsyncMap<K, V>> getClusterWideMapObservable(String name) { io.vertx.rx.java.ObservableFuture<io.vertx.rxjava.core.shareddata.AsyncMap<K, V>> resultHandler = io.vertx.rx.java.RxHelper.observableFuture(); getClusterWideMap(name, resultHandler.toHandler()); return resultHandler; }
/** * Get the cluster wide map with the specified name. 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. * @param name the name of the map * @return */ public <K, V> Single<io.vertx.rxjava.core.shareddata.AsyncMap<K, V>> rxGetClusterWideMap(String name) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { getClusterWideMap(name, fut); })); }
/** * Get the cluster wide map with the specified name. 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. * @param name the name of the map * @return */ public <K, V> Single<io.vertx.rxjava.core.shareddata.AsyncMap<K, V>> rxGetClusterWideMap(String name) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { getClusterWideMap(name, fut); })); }