Class ServerRequestMessage
java.lang.Object
com.iohao.net.framework.protocol.ServerMessage
com.iohao.net.framework.protocol.ServerRequestMessage
Request message sent from one server to another within the cluster.
Extends ServerMessage with a future correlation id so that the
caller can match the asynchronous response back to this request.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-05
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongCorrelation id used to match the asynchronous response to this request.voidsetFutureId(long futureId) Correlation id used to match the asynchronous response to this request.toString()Methods inherited from class ServerMessage
addPayload, getCmdMerges, getId, getIp, getName, getNetId, getPayload, getPayloadMap, getPubName, getServerType, getTag, setCmdMerges, setId, setIp, setName, setNetId, setPubName, setServerType, setTag
-
Constructor Details
-
ServerRequestMessage
public ServerRequestMessage()
-
-
Method Details
-
getFutureId
public long getFutureId()Correlation id used to match the asynchronous response to this request. -
setFutureId
public void setFutureId(long futureId) Correlation id used to match the asynchronous response to this request. -
toString
- Overrides:
toStringin classServerMessage
-