Class ConnectResponseMessage
java.lang.Object
com.iohao.net.framework.protocol.ServerMessage
com.iohao.net.framework.protocol.ConnectResponseMessage
Response message sent when a server successfully connects (joins) the cluster.
Created from a ServerMessage via the of(ServerMessage) factory
method, copying all server metadata and adding the joining server's id and
a future correlation id.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-25
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectResponseMessageof(ServerMessage message) Create aConnectResponseMessageby copying metadata from the given server message.Methods inherited from class ServerMessage
addPayload, getPayload
-
Constructor Details
-
ConnectResponseMessage
public ConnectResponseMessage()
-
-
Method Details
-
of
Create aConnectResponseMessageby copying metadata from the given server message.- Parameters:
message- the source server message whose metadata is copied- Returns:
- a new
ConnectResponseMessagepopulated with the source metadata
-