public class FakeClusterManager extends Object implements io.vertx.core.spi.cluster.ClusterManager
| Constructor and Description |
|---|
FakeClusterManager() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
getAsyncMap(String name,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.shareddata.AsyncMap<K,V>>> resultHandler) |
<K,V> void |
getAsyncMultiMap(String name,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.spi.cluster.AsyncMultiMap<K,V>>> resultHandler) |
void |
getCounter(String name,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.shareddata.Counter>> resultHandler) |
void |
getLockWithTimeout(String name,
long timeout,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.shareddata.Lock>> resultHandler) |
String |
getNodeID() |
List<String> |
getNodes() |
<K,V> Map<K,V> |
getSyncMap(String name) |
boolean |
isActive() |
void |
join(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler) |
void |
leave(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler) |
void |
nodeListener(io.vertx.core.spi.cluster.NodeListener listener) |
static void |
reset() |
void |
setVertx(io.vertx.core.Vertx vertx) |
public void setVertx(io.vertx.core.Vertx vertx)
setVertx in interface io.vertx.core.spi.cluster.ClusterManagerpublic <K,V> void getAsyncMultiMap(String name, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.spi.cluster.AsyncMultiMap<K,V>>> resultHandler)
getAsyncMultiMap in interface io.vertx.core.spi.cluster.ClusterManagerpublic <K,V> void getAsyncMap(String name, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.shareddata.AsyncMap<K,V>>> resultHandler)
getAsyncMap in interface io.vertx.core.spi.cluster.ClusterManagerpublic <K,V> Map<K,V> getSyncMap(String name)
getSyncMap in interface io.vertx.core.spi.cluster.ClusterManagerpublic void getLockWithTimeout(String name, long timeout, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.shareddata.Lock>> resultHandler)
getLockWithTimeout in interface io.vertx.core.spi.cluster.ClusterManagerpublic void getCounter(String name, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.shareddata.Counter>> resultHandler)
getCounter in interface io.vertx.core.spi.cluster.ClusterManagerpublic String getNodeID()
getNodeID in interface io.vertx.core.spi.cluster.ClusterManagerpublic List<String> getNodes()
getNodes in interface io.vertx.core.spi.cluster.ClusterManagerpublic void nodeListener(io.vertx.core.spi.cluster.NodeListener listener)
nodeListener in interface io.vertx.core.spi.cluster.ClusterManagerpublic void join(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
join in interface io.vertx.core.spi.cluster.ClusterManagerpublic void leave(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
leave in interface io.vertx.core.spi.cluster.ClusterManagerpublic boolean isActive()
isActive in interface io.vertx.core.spi.cluster.ClusterManagerpublic static void reset()
Copyright © 2017. All rights reserved.