Interface FlowAttachmentCommunication
- All Superinterfaces:
CommonDecorator, ExternalCommunicationDecorator, FlowCommon, FlowExternalCommunication
- All Known Subinterfaces:
FlowContext
- All Known Implementing Classes:
DefaultFlowContext
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-10-09
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> TgetAttachmentdefault <T> TgetAttachment(Class<T> clazz) default voiddefault voidupdateAttachment(byte[] attachment) default voiddefault voidupdateAttachmentAsync(byte[] attachment) Methods inherited from interface CommonDecorator
getCommunicationAggregationMethods inherited from interface ExternalCommunicationDecorator
bindingLogicServer, callbackCollectExternal, callbackCollectExternal, callbackCollectExternal, callbackCollectExternal, callbackExternal, callbackExternal, callbackExternal, callbackExternal, callCollectExternal, callCollectExternal, callCollectExternal, callCollectExternalFuture, callCollectExternalFuture, callCollectExternalFuture, callExternal, callExternal, callExternal, 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, setUserIdMethods inherited from interface FlowExternalCommunication
ofExternalRequestMessage
-
Method Details
-
updateAttachment
default void updateAttachment(byte[] attachment) -
updateAttachmentAsync
default void updateAttachmentAsync(byte[] attachment) -
updateAttachment
default void updateAttachment() -
updateAttachmentAsync
default void updateAttachmentAsync() -
getAttachment
-
getAttachment
default <T> T getAttachment()getAttachmentexamples
public class MyFlowContext extends FlowContext { MyAttachment attachment; @Override public MyAttachment getAttachment() { if (Objects.isNull(attachment)) { this.attachment = this.getAttachment(MyAttachment.class); } return this.attachment; } } public class MyAttachment { long userId; ... }- Type Parameters:
T- t- Returns:
- attachment
-