Interface FlowExternalWriteCommunication
- All Superinterfaces:
CommonDecorator, ExternalCommunicationDecorator, FlowCommon
- All Known Subinterfaces:
FlowContext
- All Known Implementing Classes:
DefaultFlowContext
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 Summary
Modifier and TypeMethodDescriptiondefault voidwriteMessage(boolean data) Write a boolean response message to the external client.default voidwriteMessage(int data) Write an int response message to the external client.default voidwriteMessage(long data) Write a long response message to the external client.default voidwriteMessage(Object data) Write a response message with the given data to the external client.default voidwriteMessage(String data) Write a String response message to the external client.default voidwriteMessage(List<?> dataList) Write a response message containing a list of objects to the external client.Methods inherited from interface CommonDecorator
getCommunicationAggregationMethods inherited from interface ExternalCommunicationDecorator
bindingLogicServer, callExternal, callExternal, callExternal, callExternalAsync, callExternalAsync, callExternalAsync, callExternalAsync, callExternalCollect, callExternalCollect, callExternalCollect, callExternalCollectAsync, callExternalCollectAsync, callExternalCollectAsync, callExternalCollectAsync, callExternalCollectFuture, callExternalCollectFuture, callExternalCollectFuture, callExternalFuture, callExternalFuture, callExternalFuture, ofExternalRequestMessage, ofExternalRequestMessageMethods inherited from interface FlowCommon
execute, executeUser, executeVirtual, getBarSkeleton, getCmdInfo, getCommunicationType, getCurrentExecutor, getCurrentThreadExecutor, getExecutorRegion, getRequest, getServer, getServerId, getThreadIndex, getTraceId, getUserId, getUserThreadExecutor, getVirtualThreadExecutor, setMethodResult, setUserId
-
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
Write a String response message to the external client. @see #writeMessage(Object) -
writeMessage
Write a response message with the given data to the external client.The data is encoded using the appropriate
DataCodecbased 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
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:
-