Class CommonMessage
java.lang.Object
com.iohao.net.framework.protocol.CommonMessage
- All Implemented Interfaces:
FutureMessage, RemoteMessage
- Direct Known Subclasses:
RequestMessage, ResponseMessage, UserRequestMessage, UserResponseMessage
Base class for internal messages exchanged between logic servers via Aeron.
Carries the common fields shared by all internal message types: the merged command
route key (cmdMerge), trace identifier, server routing IDs (external, logic,
source), network identifier, timing information, serialized payload data, and an
optional error output. Subclasses extend this to add request- or response-specific fields.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-15
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDerive theCmdInforoute descriptor from the merged command key.voidsetCmdInfo(CmdInfo cmdInfo) Set the command route from aCmdInfodescriptor.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FutureMessage
getFutureId, setFutureIdMethods inherited from interface RemoteMessage
getCmdMerge, getData, getExternalServerId, getLogicServerId, getNanoTime, getNetId, getSourceServerId, getTraceId, setCmdMerge, setData, setExternalServerId, setLogicServerId, setNanoTime, setNetId, setOutputError, setSourceServerId, setTraceId
-
Constructor Details
-
CommonMessage
public CommonMessage()
-
-
Method Details
-
setCmdInfo
Set the command route from aCmdInfodescriptor.- Specified by:
setCmdInfoin interfaceRemoteMessage- Parameters:
cmdInfo- the command info containing the merged route key
-
getCmdInfo
Derive theCmdInforoute descriptor from the merged command key.- Specified by:
getCmdInfoin interfaceRemoteMessage- Returns:
- the command info
-