Class ExternalResponseMessage
java.lang.Object
com.iohao.net.framework.protocol.ExternalResponseMessage
- All Implemented Interfaces:
CommonResponse, ExternalResponse, FutureMessage
ExternalResponseMessage
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]default booleandefault intdefault longdefault Stringdefault voidsetPayload(boolean payload) voidsetPayload(byte[] payload) default voidsetPayload(int payload) default voidsetPayload(long payload) default voidsetPayload(String payload) Methods 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 ExternalResponse
getExternalServerIdMethods inherited from interface FutureMessage
getFutureId, setFutureId
-
Constructor Details
-
ExternalResponseMessage
public ExternalResponseMessage()
-
-
Method Details
-
getPayload
byte[] getPayload() -
getPayloadAsInt
default int getPayloadAsInt() -
getPayloadAsLong
default long getPayloadAsLong() -
getPayloadAsBool
default boolean getPayloadAsBool() -
getPayloadAsString
-
setPayload
void setPayload(byte[] payload) -
setPayload
default void setPayload(int payload) -
setPayload
default void setPayload(long payload) -
setPayload
default void setPayload(boolean payload) -
setPayload
-