Interface FlowExternalCommunication
- All Superinterfaces:
CommonDecorator, ExternalCommunicationDecorator, FlowCommon
- All Known Subinterfaces:
FlowAttachmentCommunication, FlowBindingLogicServerCommunication, FlowContext, FLowUserIdSettingCommunication
- All Known Implementing Classes:
DefaultFlowContext
Flow-level communication for sending requests to external servers.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-10-09
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExternalRequestMessageofExternalRequestMessage(int templateId, byte[] payload) Create anExternalRequestMessagetargeting the specified external server template ID, with the given payload.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, 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
-
ofExternalRequestMessage
Create anExternalRequestMessagetargeting the specified external server template ID, with the given payload. Routing fields (user identity, trace ID, net ID, external server ID) are copied from the current request and server.- Specified by:
ofExternalRequestMessagein interfaceExternalCommunicationDecorator- Parameters:
templateId- the external server template IDpayload- the encoded byte payload (may benull)- Returns:
- a new ExternalRequestMessage with routing fields populated
-