Class AbstractCommunicationMessage
java.lang.Object
com.iohao.net.framework.protocol.AbstractCommunicationMessage
- All Implemented Interfaces:
CommonResponse, CommunicationMessage, FutureMessage, RemoteMessage, Request, UserIdentity
- Direct Known Subclasses:
ExternalMessage
AbstractCommunicationMessage
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-24
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintgetMsgId()<T> TgetOther()intvoidsetCmdCode(int cmdCode) voidsetCmdInfo(CmdInfo cmdInfo) voidsetErrorCode(int errorCode) voidsetErrorMessage(String errorMessage) voidsetMsgId(int msgId) voidsetOutputError(ErrorInformation outputError) voidsetProtocolSwitch(int protocolSwitch) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CommonResponse
hasError, isSuccess, setErrorMethods inherited from interface CommunicationMessage
getCacheCondition, getCmdInfo, getCmdMerge, getData, setCacheCondition, setCmdMerge, setDataMethods inherited from interface FutureMessage
getFutureId, setFutureIdMethods inherited from interface RemoteMessage
getExternalServerId, getLogicServerId, getNanoTime, getNetId, getSourceServerId, getTraceId, setExternalServerId, setLogicServerId, setNanoTime, setNetId, 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
-
AbstractCommunicationMessage
public AbstractCommunicationMessage()
-
-
Method Details
-
setOutputError
- Specified by:
setOutputErrorin interfaceRemoteMessage
-
setCmdInfo
- Specified by:
setCmdInfoin interfaceRemoteMessage
-
getOther
public <T> T getOther() -
getCmdCode
public int getCmdCode()- Specified by:
getCmdCodein interfaceCommunicationMessage
-
setCmdCode
public void setCmdCode(int cmdCode) - Specified by:
setCmdCodein interfaceCommunicationMessage
-
getProtocolSwitch
public int getProtocolSwitch()- Specified by:
getProtocolSwitchin interfaceCommunicationMessage
-
setProtocolSwitch
public void setProtocolSwitch(int protocolSwitch) - Specified by:
setProtocolSwitchin interfaceCommunicationMessage
-
getMsgId
public int getMsgId()- Specified by:
getMsgIdin interfaceCommunicationMessage
-
setMsgId
public void setMsgId(int msgId) - Specified by:
setMsgIdin interfaceCommunicationMessage
-
getErrorCode
public int getErrorCode()- Specified by:
getErrorCodein interfaceCommonResponse
-
setErrorCode
public void setErrorCode(int errorCode) - Specified by:
setErrorCodein interfaceCommonResponse
-
getErrorMessage
- Specified by:
getErrorMessagein interfaceCommonResponse
-
setErrorMessage
- Specified by:
setErrorMessagein interfaceCommonResponse
-