Class DefaultFlowContext
java.lang.Object
com.iohao.net.framework.core.flow.DefaultFlowContext
- All Implemented Interfaces:
BroadcastMulticastCommunicationDecorator, BroadcastUserCommunicationDecorator, BroadcastUserListCommunicationDecorator, CommonDecorator, ExternalCommunicationDecorator, LogicCallCollectCommunicationDecorator, LogicCallCommunicationDecorator, LogicCommunicationDecorator, LogicSendCommunicationDecorator, FlowAttachmentCommunication, FlowBindingLogicServerCommunication, FlowBroadcastCommunication, FlowCommon, FlowCommunicationEventBus, FlowContext, FlowExternalCommunication, FlowExternalWriteCommunication, FlowLogicCallCollectCommunication, FlowLogicCallCommunication, FlowLogicSendCommunication, FLowUserIdSettingCommunication
Default implementation of
FlowContext with Lombok-generated getters and setters.- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-10-09
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the nano time when this flow context was created.ofRequestMessage(CmdInfo cmdInfo, byte[] dataBytes) Create a newRequestMessagefor cross-logic-server calls, copying routing fields from the current request.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, callExternal, callExternal, callExternal, callExternalAsync, callExternalAsync, callExternalAsync, callExternalAsync, callExternalCollect, callExternalCollect, callExternalCollect, callExternalCollectAsync, callExternalCollectAsync, callExternalCollectAsync, callExternalCollectAsync, callExternalCollectFuture, callExternalCollectFuture, callExternalCollectFuture, 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 FlowContext
getActionCommand, getActionController, getBarSkeleton, getCmdInfo, getCmdMerge, getCommunicationAggregation, getCommunicationType, getCurrentThreadExecutor, getDataParam, getErrorCode, getErrorMessage, getMethodResult, getOriginalMethodResult, getRequest, getUserId, hasError, setActionCommand, setActionController, setBarSkeleton, setCmdInfo, setCommunicationAggregation, setCommunicationType, setCurrentThreadExecutor, setDataParam, setErrorCode, setErrorMessage, setMethodResult, setOriginalMethodResult, setRequest, setUserIdMethods 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
callCollect, callCollect, callCollect, callCollect, callCollect, callCollect, callCollect, callCollect, callCollect, callCollectAsync, callCollectAsync, callCollectAsync, callCollectAsync, callCollectAsync, callCollectAsync, callCollectAsync, callCollectAsync, callCollectAsync, callCollectAsync, callCollectAsyncListBool, callCollectAsyncListInt, callCollectAsyncListLong, callCollectAsyncListString, 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, callAsync, callAsync, callAsync, callAsync, callAsync, callAsync, callAsync, callAsync, callAsync, callAsync, callAsyncListBool, callAsyncListInt, callAsyncListLong, callAsyncListString, 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, 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
-
Constructor Details
-
DefaultFlowContext
public DefaultFlowContext()
-
-
Method Details
-
getNanoTime
public long getNanoTime()Description copied from interface:FlowContextGet the nano time when this flow context was created.- Specified by:
getNanoTimein interfaceFlowContext- Returns:
- creation timestamp in nanoseconds
-
ofRequestMessage
Create a newRequestMessagefor cross-logic-server calls, copying routing fields from the current request.- Specified by:
ofRequestMessagein interfaceLogicCommunicationDecorator- Parameters:
cmdInfo- the target command routing infodataBytes- the serialized request payload- Returns:
- a new request message with source server and net ID populated
-