public interface SharedClient<K,V>
Shared client for shared data in vert.x
| Modifier and Type | Method and Description |
|---|---|
boolean |
clear() |
SharedClient<K,V> |
clear(io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> handler) |
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) |
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 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) |
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) |
static <K,V> SharedClient createShared(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject config, String name)
Create local map from shared data
SharedClient<K,V> switchClient(String name)
boolean clear()
int size()
SharedClient<K,V> put(K key, V value, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.up.atom.Kv<K,V>>> handler)
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> remove(K key, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.up.atom.Kv<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)
SharedClient<K,V> clear(io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> handler)
SharedClient<K,V> size(io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler)
SharedClient<K,V> keys(io.vertx.core.Handler<io.vertx.core.AsyncResult<Set<K>>> handler)
Copyright © 2021. All rights reserved.