io.vertx.core.Vertx#executeBlocking
should be used to run the operation on a worker.
| Modifier and Type | Method and Description |
|---|---|
| public void | addRegistration(String address, RegistrationInfo registrationInfo, Promise<Void> promise)
References Deprecated
RegistrationInfo is deprecated or references (maybe indirectly) at least one deprecated element.
Share a new messaging handler registration with other nodes in the cluster. |
| public default String | Returns: null if the cluster manager does not start a server or the host couldn't be determinedIf the cluster manager has its own server for data/membership, this returns the host it is listening to. |
| public default String | Returns: null if the cluster manager does not advertise a host that is different from the cluster host or the public host couldn't be determinedIf the cluster manager has its own server for data/membership, this returns the host it advertises to other nodes. |
| public <K, V> void | |
| public void | |
| public void | getLockWithTimeout(String name, long timeout, Promise<Lock> promise)
Attempts to acquire a |
| public String | |
| public NodeInfo | getNodeInfo()
References Deprecated
NodeInfo is deprecated or references (maybe indirectly) at least one deprecated element.
Get details about this clustered node. |
| public void | getNodeInfo(String
the clustered node id nodeId, Promise<NodeInfo> promise)Get details about a specific node in the cluster. |
| public List | |
| public void | getRegistrations(String address, Promise<List<RegistrationInfo>> promise)
Get the messaging handler currently registered in the cluster. |
| public <K, V> Map | |
| public default void | init(VertxBuilder
the builder builder)Implements io. Let the provider initialize the Vert.x builder. |
| public void | init(Vertx
the Vert.x instance vertx, NodeSelector the nodeSelector)NodeSelector that must receive RegistrationUpdateEvent.Invoked before this cluster node tries to join the cluster. |
| public boolean | |
| public void | |
| public void | |
| public void | nodeListener(NodeListener listener)
Set a listener that will be called when a node joins or leaves the cluster. |
| public void | removeRegistration(String address, RegistrationInfo registrationInfo, Promise<Void> promise)
References Deprecated
RegistrationInfo is deprecated or references (maybe indirectly) at least one deprecated element.
Signal removal of a messaging handler registration to other nodes in the cluster. |
| public void | setNodeInfo(NodeInfo nodeInfo, Promise<Void> promise)
References Deprecated
NodeInfo is deprecated or references (maybe indirectly) at least one deprecated element.
Store the details about this clustered node. |
| addRegistration | back to summary |
|---|---|
| public void addRegistration(String address, RegistrationInfo registrationInfo, Promise<Void> promise)
References Deprecated
See corresponding docs for further information. Share a new messaging handler registration with other nodes in the cluster. | |
| clusterHost | back to summary |
|---|---|
| public default String clusterHost() If the cluster manager has its own server for data/membership, this returns the host it is listening to. When users don't configure the eventbus cluster host, the value will serve as a default.
| |
| clusterPublicHost | back to summary |
|---|---|
| public default String clusterPublicHost() If the cluster manager has its own server for data/membership, this returns the host it advertises to other nodes. When users don't configure the eventbus cluster public host, the value will serve as a default.
| |
| getAsyncMap | back to summary |
|---|---|
| public <K, V> void getAsyncMap(String name, Promise<AsyncMap<K, V>> promise) Return an | |
| getCounter | back to summary |
|---|---|
| public void getCounter(String name, Promise<Counter> promise) Return a | |
| getLockWithTimeout | back to summary |
|---|---|
| public void getLockWithTimeout(String name, long timeout, Promise<Lock> promise) Attempts to acquire a | |
| getNodeId | back to summary |
|---|---|
| public String getNodeId() Return the unique node identifier for this node. | |
| getNodeInfo | back to summary |
|---|---|
| public NodeInfo getNodeInfo()
References Deprecated
See corresponding docs for further information. Get details about this clustered node. | |
| getNodeInfo | back to summary |
|---|---|
| public void getNodeInfo(String nodeId, Promise<NodeInfo> promise) Get details about a specific node in the cluster.
| |
| getNodes | back to summary |
|---|---|
| public List Return a list of node identifiers corresponding to the nodes in the cluster. | |
| getRegistrations | back to summary |
|---|---|
| public void getRegistrations(String address, Promise<List<RegistrationInfo>> promise) Get the messaging handler currently registered in the cluster. | |
| getSyncMap | back to summary |
|---|---|
| public <K, V> Map Return a synchronous map for the given | |
| init | back to summary |
|---|---|
| public default void init(VertxBuilder builder) Implements io. Doc from io. Let the provider initialize the Vert.x builder.
| |
| init | back to summary |
|---|---|
| public void init(Vertx vertx, NodeSelector nodeSelector) Invoked before this cluster node tries to join the cluster.
Implementations must signal the provided
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() Is the cluster manager active?
| |
| join | back to summary |
|---|---|
| public void join(Promise<Void> promise) Join the cluster. | |
| leave | back to summary |
|---|---|
| public void leave(Promise<Void> promise) Leave the cluster. | |
| nodeListener | back to summary |
|---|---|
| public void nodeListener(NodeListener listener) Set a listener that will be called when a node joins or leaves the cluster. | |
| removeRegistration | back to summary |
|---|---|
| public void removeRegistration(String address, RegistrationInfo registrationInfo, Promise<Void> promise)
References Deprecated
See corresponding docs for further information. Signal removal of a messaging handler registration to other nodes in the cluster. | |
| setNodeInfo | back to summary |
|---|---|
| public void setNodeInfo(NodeInfo nodeInfo, Promise<Void> promise)
References Deprecated
See corresponding docs for further information. Store the details about this clustered node. | |