Class EmptyExternalResponseMessage
java.lang.Object
com.iohao.net.framework.protocol.EmptyExternalResponseMessage
- All Implemented Interfaces:
CommonResponse, FutureMessage
public final class EmptyExternalResponseMessage
extends Object
implements CommonResponse, FutureMessage
Lightweight external response that carries only error information and no payload.
Used when the external server needs to signal success or failure without returning any business data (e.g. acknowledgement-only responses).
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-18
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EmptyExternalResponseMessageof(long futureId) Create an empty response pre-populated with the given future id.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 FutureMessage
getFutureId, setFutureId
-
Constructor Details
-
EmptyExternalResponseMessage
public EmptyExternalResponseMessage()
-
-
Method Details
-
of
Create an empty response pre-populated with the given future id.- Parameters:
futureId- the correlation id of the originating request- Returns:
- a new
EmptyExternalResponseMessageinstance
-