Interface LogicSendCommunicationDecorator

All Superinterfaces:
CommonDecorator
All Known Subinterfaces:
Communication, FlowContext, FlowLogicSendCommunication
All Known Implementing Classes:
DefaultCommunication, DefaultFlowContext

public interface LogicSendCommunicationDecorator extends CommonDecorator
Decorator providing fire-and-forget message sending to other logic servers.
Since:
25.1
Author:
渔民小镇
date:
2025-09-28
  • Method Details

    • ofSendMessage

      default SendMessage ofSendMessage(CmdInfo cmdInfo, byte[] data)
      Create a SendMessage for the given command with raw byte data.

      Populates the message with trace context, net ID, and source server ID from the current flow context.

      Parameters:
      cmdInfo - the target command route
      data - the raw byte payload
      Returns:
      a fully initialized SendMessage
    • ofSendMessage

      default SendMessage ofSendMessage(CmdInfo cmdInfo, int data)
      Create a SendMessage with int payload. @see #ofSendMessage(CmdInfo, byte[])
    • ofSendMessage

      default SendMessage ofSendMessage(CmdInfo cmdInfo, long data)
      Create a SendMessage with long payload. @see #ofSendMessage(CmdInfo, byte[])
    • ofSendMessage

      default SendMessage ofSendMessage(CmdInfo cmdInfo, boolean data)
      Create a SendMessage with boolean payload. @see #ofSendMessage(CmdInfo, byte[])
    • ofSendMessage

      default SendMessage ofSendMessage(CmdInfo cmdInfo, String data)
      Create a SendMessage with String payload. @see #ofSendMessage(CmdInfo, byte[])
    • ofSendMessage

      default SendMessage ofSendMessage(CmdInfo cmdInfo, Object data)
      Create a SendMessage with Object payload. @see #ofSendMessage(CmdInfo, byte[])
    • ofSendMessage

      default SendMessage ofSendMessage(CmdInfo cmdInfo, List<?> dataList)
      Create a SendMessage with List payload. @see #ofSendMessage(CmdInfo, byte[])
    • ofSendMessageListInt

      default SendMessage ofSendMessageListInt(CmdInfo cmdInfo, List<Integer> dataList)
      Create a SendMessage with List<Integer> payload. @see #ofSendMessage(CmdInfo, byte[])
    • ofSendMessageListLong

      default SendMessage ofSendMessageListLong(CmdInfo cmdInfo, List<Long> dataList)
      Create a SendMessage with List<Long> payload. @see #ofSendMessage(CmdInfo, byte[])
    • ofSendMessageListBool

      default SendMessage ofSendMessageListBool(CmdInfo cmdInfo, List<Boolean> dataList)
      Create a SendMessage with List<Boolean> payload. @see #ofSendMessage(CmdInfo, byte[])
    • ofSendMessageListString

      default SendMessage ofSendMessageListString(CmdInfo cmdInfo, List<String> dataList)
      Create a SendMessage with List<String> payload. @see #ofSendMessage(CmdInfo, byte[])
    • send

      default void send(SendMessage message)
      Send a message to another logic server.

      This is a fire-and-forget operation; no response is returned.

      Parameters:
      message - the message to send
    • send

      default void send(CmdInfo cmdInfo, byte[] data)
      Send raw bytes to another logic server. @see #send(SendMessage)
    • send

      default void send(CmdInfo cmdInfo)
      Send with no payload. @see #send(SendMessage)
    • send

      default void send(CmdInfo cmdInfo, int data)
      Send with int payload. @see #send(SendMessage)
    • send

      default void send(CmdInfo cmdInfo, long data)
      Send with long payload. @see #send(SendMessage)
    • send

      default void send(CmdInfo cmdInfo, boolean data)
      Send with boolean payload. @see #send(SendMessage)
    • send

      default void send(CmdInfo cmdInfo, String data)
      Send with String payload. @see #send(SendMessage)
    • send

      default void send(CmdInfo cmdInfo, Object data)
      Send with Object payload. @see #send(SendMessage)
    • send

      default void send(CmdInfo cmdInfo, List<?> dataList)
      Send with List payload. @see #send(SendMessage)
    • sendListInt

      default void sendListInt(CmdInfo cmdInfo, List<Integer> dataList)
      Send with List<Integer> payload. @see #send(SendMessage)
    • sendListLong

      default void sendListLong(CmdInfo cmdInfo, List<Long> dataList)
      Send with List<Long> payload. @see #send(SendMessage)
    • sendListBool

      default void sendListBool(CmdInfo cmdInfo, List<Boolean> dataList)
      Send with List<Boolean> payload. @see #send(SendMessage)
    • sendListString

      default void sendListString(CmdInfo cmdInfo, List<String> dataList)
      Send with List<String> payload. @see #send(SendMessage)