Package io.vertx.tp.plugin.shared
Interface SharedClient<K,V>
-
- All Known Implementing Classes:
SharedClientImpl
public interface SharedClient<K,V>Shared client for shared data in vert.x
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanclear()SharedClient<K,V>clear(io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> handler)static <K,V>
SharedClientcreateShared(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject config, String name)Create local map from shared dataio.vertx.core.shareddata.AsyncMap<K,V>fetchAsync()Get reference of AsyncMapio.vertx.core.shareddata.LocalMap<K,V>fetchSync()Get reference of LocalMapVget(K key)Vget(K key, boolean once)SharedClient<K,V>get(K key, boolean once, io.vertx.core.Handler<io.vertx.core.AsyncResult<V>> handler)SharedClient<K,V>get(K key, io.vertx.core.Handler<io.vertx.core.AsyncResult<V>> handler)Set<K>keys()SharedClient<K,V>keys(io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<K>>> handler)io.vertx.up.atom.Kv<K,V>put(K key, V value)io.vertx.up.atom.Kv<K,V>put(K key, V value, int expiredSecs)SharedClient<K,V>put(K key, V value, int expiredSecs, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.up.atom.Kv<K,V>>> handler)SharedClient<K,V>put(K key, V value, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.up.atom.Kv<K,V>>> handler)io.vertx.up.atom.Kv<K,V>remove(K key)SharedClient<K,V>remove(K key, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.up.atom.Kv<K,V>>> handler)intsize()SharedClient<K,V>size(io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler)SharedClient<K,V>switchClient(String name)
-
-
-
Method Detail
-
createShared
static <K,V> SharedClient createShared(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject config, String name)
Create local map from shared data
-
switchClient
SharedClient<K,V> switchClient(String name)
-
clear
boolean clear()
-
size
int size()
-
put
SharedClient<K,V> put(K key, V value, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.up.atom.Kv<K,V>>> handler)
-
put
SharedClient<K,V> put(K key, V value, int expiredSecs, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.up.atom.Kv<K,V>>> handler)
-
remove
SharedClient<K,V> remove(K key, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.up.atom.Kv<K,V>>> handler)
-
get
SharedClient<K,V> get(K key, io.vertx.core.Handler<io.vertx.core.AsyncResult<V>> handler)
-
get
SharedClient<K,V> get(K key, boolean once, io.vertx.core.Handler<io.vertx.core.AsyncResult<V>> handler)
-
clear
SharedClient<K,V> clear(io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> handler)
-
size
SharedClient<K,V> size(io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler)
-
keys
SharedClient<K,V> keys(io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<K>>> handler)
-
-