Class UserResponseMessage
java.lang.Object
com.iohao.net.framework.protocol.CommonMessage
com.iohao.net.framework.protocol.UserResponseMessage
- All Implemented Interfaces:
CommonResponse, FutureMessage, RemoteMessage, Response, UserIdentity
User-facing response message sent back through the external Netty pipeline to the client.
Extends BarMessage and implements Response to provide typed data extraction
from the serialized payload. Decoding uses the external-facing codec obtained from
DataCodecManager. The factory method of() creates a new instance
pre-configured with the business command code.
- Author:
- 渔民小镇
- date:
- 2021-12-20
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TDecode the response payload into the specified type.<T> List<T> Decode the response payload into a list of the specified element type.static UserResponseMessageof()Create a newUserResponseMessagepre-configured with the business command code.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 CommonResponse
getErrorCode, getErrorMessage, hasError, isSuccess, setError, setErrorCode, setErrorMessageMethods 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 Response
getBoolean, getData, getInt, getLong, getString, listBoolean, listInt, listLong, listStringMethods inherited from interface UserIdentity
bindingUserId, getUserId, isVerifyIdentity, setUserId, setUserIdentity, setVerifyIdentity, verifyIdentity
-
Constructor Details
-
UserResponseMessage
public UserResponseMessage()
-
-
Method Details
-
getValue
-
listValue
-
of
Create a newUserResponseMessagepre-configured with the business command code.- Returns:
- a new user response message
-