Class RequestMessage
java.lang.Object
com.iohao.net.framework.protocol.CommonMessage
com.iohao.net.framework.protocol.RequestMessage
- All Implemented Interfaces:
FutureMessage, RemoteMessage, Request, UserIdentity
- Direct Known Subclasses:
SendMessage
Internal request message used for logic-to-logic server communication via Aeron.
Extends CommonMessage with Request fields including user identity,
hop tracking, logic-server binding, and per-request attachment. Provides factory
methods for creation and shallow cloning to support request forwarding across
logic server boundaries.
- Author:
- 渔民小镇
- date:
- 2025-09-02
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestMessageCreate a newRequestMessagewith the given command route and payload.ofClone()Create a shallow clone of this request message, copying all routing and identity fields.Methods inherited from class CommonMessage
getCmdInfo, setCmdInfoMethods 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
getCmdInfo, getCmdMerge, getData, getExternalServerId, getLogicServerId, getNanoTime, getNetId, getSourceServerId, getTraceId, setCmdInfo, setCmdMerge, setData, setExternalServerId, setLogicServerId, setNanoTime, setNetId, setOutputError, setSourceServerId, setTraceIdMethods inherited from interface Request
getAttachment, getBindingLogicServerIds, getHopCount, getStick, setAttachment, setBindingLogicServerIds, setHopCount, setStickMethods inherited from interface UserIdentity
bindingUserId, getUserId, isVerifyIdentity, setUserId, setUserIdentity, setVerifyIdentity, verifyIdentity
-
Constructor Details
-
RequestMessage
public RequestMessage()
-
-
Method Details
-
of
Create a newRequestMessagewith the given command route and payload.- Parameters:
cmdInfo- the command route descriptordata- the serialized request payload- Returns:
- a new request message
-
ofClone
Create a shallow clone of this request message, copying all routing and identity fields.Useful when forwarding a request to another logic server while preserving the original context.
- Returns:
- a new
RequestMessagewith the same field values
-