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

public class DefaultFlowContext extends Object implements FlowContext
Default implementation of FlowContext with Lombok-generated getters and setters.
Since:
25.1
Author:
渔民小镇
date:
2025-10-09
  • Constructor Details

    • DefaultFlowContext

      public DefaultFlowContext()
  • Method Details

    • getNanoTime

      public long getNanoTime()
      Description copied from interface: FlowContext
      Get the nano time when this flow context was created.
      Specified by:
      getNanoTime in interface FlowContext
      Returns:
      creation timestamp in nanoseconds
    • ofRequestMessage

      public RequestMessage ofRequestMessage(CmdInfo cmdInfo, byte[] dataBytes)
      Create a new RequestMessage for cross-logic-server calls, copying routing fields from the current request.
      Specified by:
      ofRequestMessage in interface LogicCommunicationDecorator
      Parameters:
      cmdInfo - the target command routing info
      dataBytes - the serialized request payload
      Returns:
      a new request message with source server and net ID populated