public interface ClusterManager
Action
instance and executed using the method
VertxSPI.executeBlocking(org.vertx.java.core.spi.Action, org.vertx.java.core.Handler)
Modifier and Type | Method and Description |
---|---|
<K,V> AsyncMap<K,V> |
getAsyncMap(java.lang.String name)
Return an async map for the given name
|
<K,V> AsyncMultiMap<K,V> |
getAsyncMultiMap(java.lang.String name)
Return an async multi-map for the given name
|
java.lang.String |
getNodeID()
Return the unique node ID for this node
|
java.util.List<java.lang.String> |
getNodes()
Return a list of node IDs corresponding to the nodes in the cluster
|
<K,V> java.util.Map<K,V> |
getSyncMap(java.lang.String name)
Return a synchronous map for the given name
|
void |
join()
Join the cluster
|
void |
leave()
Leave the cluster
|
void |
nodeListener(NodeListener listener)
Set a listener that will be called when a node joins or leaves the cluster.
|
<K,V> AsyncMultiMap<K,V> getAsyncMultiMap(java.lang.String name)
<K,V> AsyncMap<K,V> getAsyncMap(java.lang.String name)
<K,V> java.util.Map<K,V> getSyncMap(java.lang.String name)
java.lang.String getNodeID()
java.util.List<java.lang.String> getNodes()
void nodeListener(NodeListener listener)
listener
- void join()
void leave()