Class EventServerMessage
java.lang.Object
com.iohao.net.framework.communication.eventbus.EventServerMessage
Holds event topic information and server metadata for a logic server participating in the EventBus system.
Used to track which topics a given server subscribes to, and whether it is local or remote.
- Since:
- 21
- Author:
- 渔民小镇
- date:
- 2023-12-24
-
Constructor Summary
ConstructorsConstructorDescriptionEventServerMessage(Server server, Set<String> topics) Create an EventServerMessage for the given server and its subscribed topics. -
Method Summary
-
Constructor Details
-
EventServerMessage
-
-
Method Details
-
getTopics
Get the event topic names this server subscribes to.- Returns:
- collection of topic names
-
getName
-
getServerId
public int getServerId()Get the server ID.- Returns:
- the server ID
-
isRemote
public boolean isRemote()Whether this server is in a remote process. -
getServer
The server descriptor.
-