Interface PublisherCommunication
- All Known Subinterfaces:
CommunicationAggregation, LogicCollectCommunication, LogicCommunication
- All Known Implementing Classes:
DefaultCommunicationAggregation
public interface PublisherCommunication
Interface for publishing messages to other servers in the cluster.
Supports targeting servers by net ID, server ID, or logical name.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-28
-
Method Summary
Modifier and TypeMethodDescriptionvoidpublishMessage(int serverId, Object message) Publish a message to a server identified by its server ID.voidpublishMessage(String name, Object message) Publish a message to a server identified by its logical name.voidpublishMessageByNetId(int netId, Object message) Publish a message to a server identified by its net ID.
-
Method Details
-
publishMessageByNetId
Publish a message to a server identified by its net ID.- Parameters:
netId- the net ID of the target servermessage- the message to publish
-
publishMessage
Publish a message to a server identified by its server ID.- Parameters:
serverId- the server ID of the target servermessage- the message to publish
-
publishMessage
-