Interface FutureMessage
- All Known Subinterfaces:
CommunicationMessage, ExternalResponse, RemoteMessage, Request, Response
- All Known Implementing Classes:
AbstractCommunicationMessage, CommonMessage, EmptyExternalResponseMessage, ExternalMessage, ExternalResponseMessage, RequestMessage, ResponseMessage, SendMessage, UserRequestMessage, UserResponseMessage
public interface FutureMessage
Message that carries a future correlation id for asynchronous request/response matching.
Implemented by request and response messages that participate in asynchronous communication, allowing the caller to correlate a response back to its originating request.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-11-07
-
Method Summary
Modifier and TypeMethodDescriptionlongGet the future correlation id.voidsetFutureId(long futureId) Set the future correlation id.
-
Method Details
-
getFutureId
long getFutureId()Get the future correlation id.- Returns:
- the future id
-
setFutureId
void setFutureId(long futureId) Set the future correlation id.- Parameters:
futureId- the future id
-