public interface SharedClient<K,V>
| Modifier and Type | Method and Description |
|---|---|
static <K,V> SharedClient |
createShared(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject config,
String name)
Create local map from shared data
|
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.zero.epic.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.zero.epic.container.KeyPair<K,V>>> handler) |
io.zero.epic.container.KeyPair<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.zero.epic.container.KeyPair<K,V>>> handler) |
io.zero.epic.container.KeyPair<K,V> |
remove(K key) |
SharedClient<K,V> |
remove(K key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.zero.epic.container.KeyPair<K,V>>> handler) |
SharedClient<K,V> |
switchClient(String name) |
static <K,V> SharedClient createShared(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject config, String name)
SharedClient<K,V> switchClient(String name)
SharedClient<K,V> put(K key, V value, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.zero.epic.container.KeyPair<K,V>>> handler)
SharedClient<K,V> put(K key, V value, int expiredSecs, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.zero.epic.container.KeyPair<K,V>>> handler)
SharedClient<K,V> remove(K key, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.zero.epic.container.KeyPair<K,V>>> handler)
SharedClient<K,V> get(K key, io.vertx.core.Handler<io.vertx.core.AsyncResult<V>> handler)
SharedClient<K,V> get(K key, boolean once, io.vertx.core.Handler<io.vertx.core.AsyncResult<V>> handler)
Copyright © 2019. All rights reserved.