public class SharedClientImpl<K,V> extends Object implements SharedClient<K,V>
| Modifier and Type | Method and Description |
|---|---|
boolean |
clear() |
SharedClient<K,V> |
clear(io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> handler) |
io.vertx.core.shareddata.AsyncMap<K,V> |
fetchAsync()
Get reference of AsyncMap
|
io.vertx.core.shareddata.LocalMap<K,V> |
fetchSync()
Get reference of LocalMap
|
V |
get(K key) |
V |
get(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) |
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> |
put(K key,
V value,
int seconds) |
SharedClient<K,V> |
put(K key,
V value,
int seconds,
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) |
int |
size() |
SharedClient<K,V> |
size(io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler) |
SharedClient<K,V> |
switchClient(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSharedpublic io.vertx.core.shareddata.AsyncMap<K,V> fetchAsync()
SharedClientGet reference of AsyncMap
fetchAsync in interface SharedClient<K,V>public io.vertx.core.shareddata.LocalMap<K,V> fetchSync()
SharedClientGet reference of LocalMap
fetchSync in interface SharedClient<K,V>public SharedClient<K,V> switchClient(String name)
switchClient in interface SharedClient<K,V>public io.vertx.up.atom.Kv<K,V> put(K key, V value)
put in interface SharedClient<K,V>public io.vertx.up.atom.Kv<K,V> put(K key, V value, int seconds)
put in interface SharedClient<K,V>public 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 in interface SharedClient<K,V>public SharedClient<K,V> put(K key, V value, int seconds, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.up.atom.Kv<K,V>>> handler)
put in interface SharedClient<K,V>public io.vertx.up.atom.Kv<K,V> remove(K key)
remove in interface SharedClient<K,V>public boolean clear()
clear in interface SharedClient<K,V>public SharedClient<K,V> remove(K key, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.up.atom.Kv<K,V>>> handler)
remove in interface SharedClient<K,V>public SharedClient<K,V> get(K key, io.vertx.core.Handler<io.vertx.core.AsyncResult<V>> handler)
get in interface SharedClient<K,V>public SharedClient<K,V> get(K key, boolean once, io.vertx.core.Handler<io.vertx.core.AsyncResult<V>> handler)
get in interface SharedClient<K,V>public SharedClient<K,V> clear(io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> handler)
clear in interface SharedClient<K,V>public SharedClient<K,V> size(io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler)
size in interface SharedClient<K,V>public SharedClient<K,V> keys(io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<K>>> handler)
keys in interface SharedClient<K,V>public int size()
size in interface SharedClient<K,V>Copyright © 2021. All rights reserved.