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 Type
    Method
    Description
    void
    publishMessage(int serverId, Object message)
    Publish a message to a server identified by its server ID.
    void
    publishMessage(String name, Object message)
    Publish a message to a server identified by its logical name.
    void
    publishMessageByNetId(int netId, Object message)
    Publish a message to a server identified by its net ID.
  • Method Details

    • publishMessageByNetId

      void publishMessageByNetId(int netId, Object message)
      Publish a message to a server identified by its net ID.
      Parameters:
      netId - the net ID of the target server
      message - the message to publish
    • publishMessage

      void publishMessage(int serverId, Object message)
      Publish a message to a server identified by its server ID.
      Parameters:
      serverId - the server ID of the target server
      message - the message to publish
    • publishMessage

      void publishMessage(String name, Object message)
      Publish a message to a server identified by its logical name.
      Parameters:
      name - the logical name of the target server
      message - the message to publish