Interface FlowExternalWriteCommunication

All Superinterfaces:
CommonDecorator, ExternalCommunicationDecorator, FlowCommon
All Known Subinterfaces:
FlowContext
All Known Implementing Classes:
DefaultFlowContext

public interface FlowExternalWriteCommunication extends FlowCommon, ExternalCommunicationDecorator
Flow-level communication for writing response data back to the external client, supporting various data types and list encodings.
Since:
25.1
Author:
渔民小镇
date:
2025-10-09
  • Method Details

    • writeMessage

      default void writeMessage(int data)
      Write an int response message to the external client. @see #writeMessage(Object)
    • writeMessage

      default void writeMessage(long data)
      Write a long response message to the external client. @see #writeMessage(Object)
    • writeMessage

      default void writeMessage(boolean data)
      Write a boolean response message to the external client. @see #writeMessage(Object)
    • writeMessage

      default void writeMessage(String data)
      Write a String response message to the external client. @see #writeMessage(Object)
    • writeMessage

      default void writeMessage(Object data)
      Write a response message with the given data to the external client.

      The data is encoded using the appropriate DataCodec based on the communication type, wrapped in a response, and published to the external server via the communication aggregation.

      Parameters:
      data - the response data object to encode and send
    • writeMessage

      default void writeMessage(List<?> dataList)
      Write a response message containing a list of objects to the external client.
      Parameters:
      dataList - the list of objects to encode and send
      See Also: