Interface FlowBroadcastCommunication

All Superinterfaces:
BroadcastMulticastCommunicationDecorator, BroadcastUserCommunicationDecorator, BroadcastUserListCommunicationDecorator, CommonDecorator, FlowCommon
All Known Subinterfaces:
FlowContext
All Known Implementing Classes:
DefaultFlowContext

Flow-level broadcast communication providing methods to broadcast messages to the requesting user (broadcastMe) with various data type overloads.
Since:
25.1
Author:
渔民小镇
date:
2025-10-09
  • Method Details

    • broadcastMe

      default void broadcastMe(BroadcastUserMessage message)
      Broadcast a pre-built message to the requesting user.
      Parameters:
      message - the broadcast message with user identity and data already set
    • broadcastMe

      default void broadcastMe(CmdInfo cmdInfo, byte[] data)
      Broadcast raw byte data to the requesting user. @see #broadcastMe(CmdInfo, byte[], Object)
    • broadcastMe

      default void broadcastMe(CmdInfo cmdInfo)
      Broadcast an empty message to the requesting user. @see #broadcastMe(CmdInfo, byte[], Object)
    • broadcastMe

      default void broadcastMe(CmdInfo cmdInfo, int data)
      Broadcast an int value to the requesting user. @see #broadcastMe(CmdInfo, byte[], Object)
    • broadcastMe

      default void broadcastMe(CmdInfo cmdInfo, long data)
      Broadcast a long value to the requesting user. @see #broadcastMe(CmdInfo, byte[], Object)
    • broadcastMe

      default void broadcastMe(CmdInfo cmdInfo, boolean data)
      Broadcast a boolean value to the requesting user. @see #broadcastMe(CmdInfo, byte[], Object)
    • broadcastMe

      default void broadcastMe(CmdInfo cmdInfo, String data)
      Broadcast a String value to the requesting user. @see #broadcastMe(CmdInfo, byte[], Object)
    • broadcastMe

      default void broadcastMe(CmdInfo cmdInfo, Object data)
      Broadcast an Object value to the requesting user. @see #broadcastMe(CmdInfo, byte[], Object)
    • broadcastMe

      default void broadcastMe(CmdInfo cmdInfo, List<?> dataList)
      Broadcast a list of objects to the requesting user. @see #broadcastMe(CmdInfo, byte[], Object)
    • broadcastMeListInt

      default void broadcastMeListInt(CmdInfo cmdInfo, List<Integer> dataList)
      Broadcast a list of int values to the requesting user.
      Parameters:
      cmdInfo - the command info identifying the broadcast route
      dataList - the list of int values to broadcast
    • broadcastMeListBool

      default void broadcastMeListBool(CmdInfo cmdInfo, List<Boolean> dataList)
      Broadcast a list of boolean values to the requesting user.
      Parameters:
      cmdInfo - the command info identifying the broadcast route
      dataList - the list of boolean values to broadcast
    • broadcastMeListLong

      default void broadcastMeListLong(CmdInfo cmdInfo, List<Long> dataList)
      Broadcast a list of long values to the requesting user.
      Parameters:
      cmdInfo - the command info identifying the broadcast route
      dataList - the list of long values to broadcast
    • broadcastMeListString

      default void broadcastMeListString(CmdInfo cmdInfo, List<String> dataList)
      Broadcast a list of String values to the requesting user.
      Parameters:
      cmdInfo - the command info identifying the broadcast route
      dataList - the list of String values to broadcast