Interface FlowContext
- All Superinterfaces:
BroadcastMulticastCommunicationDecorator, BroadcastUserCommunicationDecorator, BroadcastUserListCommunicationDecorator, CommonDecorator, ExternalCommunicationDecorator, FlowAttachmentCommunication, FlowBindingLogicServerCommunication, FlowBroadcastCommunication, FlowCommon, FlowCommunicationEventBus, FlowExternalCommunication, FlowExternalWriteCommunication, FlowLogicCallCollectCommunication, FlowLogicCallCommunication, FlowLogicSendCommunication, FLowUserIdSettingCommunication, LogicCallCollectCommunicationDecorator, LogicCallCommunicationDecorator, LogicCommunicationDecorator, LogicSendCommunicationDecorator
- All Known Implementing Classes:
DefaultFlowContext
public interface FlowContext
extends FlowAttachmentCommunication, FLowUserIdSettingCommunication, FlowExternalCommunication, FlowLogicCallCommunication, FlowLogicSendCommunication, FlowBroadcastCommunication, FlowCommunicationEventBus, FlowExternalWriteCommunication, FlowLogicCallCollectCommunication, FlowBindingLogicServerCommunication
The FlowContext's lifecycle is limited to the duration of a single request flow.
- Author:
- 渔民小镇
- date:
- 2021-12-21
-
Method Summary
Modifier and TypeMethodDescriptiondefault intintlonglongdefault booleanhasError()voidsetActionCommand(ActionCommand actionCommand) voidsetActionController(Object actionController) voidsetBarSkeleton(BarSkeleton barSkeleton) voidsetCmdInfo(CmdInfo cmdInfo) voidsetCommunicationAggregation(CommunicationAggregation communicationAggregation) voidsetCommunicationType(CommunicationType communicationType) voidsetCurrentThreadExecutor(ThreadExecutor currentThreadExecutor) voidsetDataParam(Object dataParam) voidsetErrorCode(int errorCode) voidsetErrorMessage(String errorMessage) voidsetMethodResult(Object methodResult) voidsetOriginalMethodResult(Object originalMethodResult) voidsetRequest(Request request) voidsetUserId(long userId) Methods inherited from interface BroadcastMulticastCommunicationDecorator
broadcast, broadcastMulticast, broadcastMulticast, broadcastMulticast, broadcastMulticast, broadcastMulticast, broadcastMulticast, broadcastMulticast, broadcastMulticast, broadcastMulticastListBool, broadcastMulticastListInt, broadcastMulticastListLong, broadcastMulticastListStringMethods inherited from interface BroadcastUserCommunicationDecorator
broadcast, broadcastUser, broadcastUser, broadcastUser, broadcastUser, broadcastUser, broadcastUser, broadcastUser, broadcastUser, broadcastUserListBool, broadcastUserListInt, broadcastUserListLong, broadcastUserListStringMethods inherited from interface BroadcastUserListCommunicationDecorator
broadcast, broadcastUsers, broadcastUsers, broadcastUsers, broadcastUsers, broadcastUsers, broadcastUsers, broadcastUsers, broadcastUsers, broadcastUsersListBool, broadcastUsersListInt, broadcastUsersListLong, broadcastUsersListStringMethods 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 FlowAttachmentCommunication
getAttachment, getAttachment, updateAttachment, updateAttachment, updateAttachmentAsync, updateAttachmentAsyncMethods inherited from interface FlowBindingLogicServerCommunication
bindingLogicServer, clearBindingLogicServerMethods inherited from interface FlowBroadcastCommunication
broadcastMe, broadcastMe, broadcastMe, broadcastMe, broadcastMe, broadcastMe, broadcastMe, broadcastMe, broadcastMe, broadcastMeListBool, broadcastMeListInt, broadcastMeListLong, broadcastMeListStringMethods inherited from interface FlowCommon
execute, executeUser, executeVirtual, getCurrentExecutor, getExecutorRegion, getServer, getServerId, getThreadIndex, getTraceId, getUserThreadExecutor, getVirtualThreadExecutorMethods inherited from interface FlowCommunicationEventBus
fire, fireAny, fireAnySync, fireLocal, fireLocalSync, fireMe, fireMeSync, fireSync, getEventBus, ofEventBusMessageMethods inherited from interface FlowExternalCommunication
ofExternalRequestMessageMethods inherited from interface FlowExternalWriteCommunication
writeMessage, writeMessage, writeMessage, writeMessage, writeMessage, writeMessageMethods inherited from interface FlowLogicSendCommunication
ofSendMessageMethods inherited from interface FLowUserIdSettingCommunication
bindingUserId, bindingUserIdAndGetResultMethods inherited from interface LogicCallCollectCommunicationDecorator
callbackCollect, callbackCollect, callbackCollect, callbackCollect, callbackCollect, callbackCollect, callbackCollect, callbackCollect, callbackCollect, callbackCollect, callbackCollectListBool, callbackCollectListInt, callbackCollectListLong, callbackCollectListString, callCollect, callCollect, callCollect, callCollect, callCollect, callCollect, callCollect, callCollect, callCollect, callCollectFuture, callCollectFuture, callCollectFuture, callCollectFuture, callCollectFuture, callCollectFuture, callCollectFuture, callCollectFuture, callCollectFuture, callCollectFutureListBool, callCollectFutureListInt, callCollectFutureListLong, callCollectFutureListString, callCollectListBool, callCollectListInt, callCollectListLong, callCollectListStringMethods inherited from interface LogicCallCommunicationDecorator
call, call, call, call, call, call, call, call, call, callback, callback, callback, callback, callback, callback, callback, callback, callback, callback, callbackListBool, callbackListInt, callbackListLong, callbackListString, callFuture, callFuture, callFuture, callFuture, callFuture, callFuture, callFuture, callFuture, callFuture, callFutureListBool, callFutureListInt, callFutureListLong, callFutureListString, callListBool, callListInt, callListLong, callListStringMethods inherited from interface LogicCommunicationDecorator
ofRequestMessage, ofRequestMessage, ofRequestMessage, ofRequestMessage, ofRequestMessage, ofRequestMessage, ofRequestMessage, ofRequestMessageListBool, ofRequestMessageListInt, ofRequestMessageListLong, ofRequestMessageListStringMethods inherited from interface LogicSendCommunicationDecorator
ofSendMessage, ofSendMessage, ofSendMessage, ofSendMessage, ofSendMessage, ofSendMessage, ofSendMessageListBool, ofSendMessageListInt, ofSendMessageListLong, ofSendMessageListString, send, send, send, send, send, send, send, send, send, sendListBool, sendListInt, sendListLong, sendListString
-
Method Details
-
hasError
default boolean hasError() -
getCmdMerge
default int getCmdMerge() -
getNanoTime
long getNanoTime() -
getUserId
long getUserId()- Specified by:
getUserIdin interfaceFlowCommon
-
setUserId
void setUserId(long userId) - Specified by:
setUserIdin interfaceFlowCommon
-
getBarSkeleton
BarSkeleton getBarSkeleton()- Specified by:
getBarSkeletonin interfaceFlowCommon
-
setBarSkeleton
-
getActionCommand
ActionCommand getActionCommand() -
setActionCommand
-
getActionController
Object getActionController() -
setActionController
-
getRequest
Request getRequest()- Specified by:
getRequestin interfaceFlowCommon
-
setRequest
-
getMethodResult
Object getMethodResult() -
setMethodResult
- Specified by:
setMethodResultin interfaceFlowCommon
-
getOriginalMethodResult
Object getOriginalMethodResult() -
setOriginalMethodResult
-
getCommunicationType
CommunicationType getCommunicationType()- Specified by:
getCommunicationTypein interfaceFlowCommon
-
setCommunicationType
-
getErrorCode
int getErrorCode() -
setErrorCode
void setErrorCode(int errorCode) -
getErrorMessage
String getErrorMessage() -
setErrorMessage
-
getCommunicationAggregation
CommunicationAggregation getCommunicationAggregation()- Specified by:
getCommunicationAggregationin interfaceCommonDecorator
-
setCommunicationAggregation
-
getDataParam
Object getDataParam() -
setDataParam
-
getCmdInfo
CmdInfo getCmdInfo()- Specified by:
getCmdInfoin interfaceFlowCommon
-
setCmdInfo
-
getCurrentThreadExecutor
ThreadExecutor getCurrentThreadExecutor()- Specified by:
getCurrentThreadExecutorin interfaceFlowCommon
-
setCurrentThreadExecutor
-