public class SharedClientImpl<K,V> extends Object implements SharedClient<K,V>
| Modifier and Type | Method and Description |
|---|---|
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) |
io.vertx.up.tool.container.KeyPair<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.tool.container.KeyPair<K,V>>> handler) |
io.vertx.up.tool.container.KeyPair<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.tool.container.KeyPair<K,V>>> handler) |
io.vertx.up.tool.container.KeyPair<K,V> |
remove(K key) |
SharedClient<K,V> |
remove(K key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.up.tool.container.KeyPair<K,V>>> 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()
SharedClientfetchAsync in interface SharedClient<K,V>public io.vertx.core.shareddata.LocalMap<K,V> fetchSync()
SharedClientfetchSync in interface SharedClient<K,V>public SharedClient<K,V> switchClient(String name)
switchClient in interface SharedClient<K,V>public io.vertx.up.tool.container.KeyPair<K,V> put(K key, V value)
put in interface SharedClient<K,V>public io.vertx.up.tool.container.KeyPair<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.tool.container.KeyPair<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.tool.container.KeyPair<K,V>>> handler)
put in interface SharedClient<K,V>public io.vertx.up.tool.container.KeyPair<K,V> remove(K key)
remove in interface SharedClient<K,V>public SharedClient<K,V> remove(K key, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.up.tool.container.KeyPair<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>Copyright © 2018. All rights reserved.