Interface Request
- All Superinterfaces:
FutureMessage, RemoteMessage, UserIdentity
- All Known Subinterfaces:
CommunicationMessage
- All Known Implementing Classes:
AbstractCommunicationMessage, ExternalMessage, RequestMessage, SendMessage, UserRequestMessage
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-15
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Extended field.int[]The IDs of multiple game logic servers bound to the playerintdefault intgetStick()voidsetAttachment(byte[] attachment) voidsetBindingLogicServerIds(int[] bindingLogicServerIds) voidsetHopCount(int hopCount) default voidsetStick(int stick) Methods 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 UserIdentity
bindingUserId, getUserId, isVerifyIdentity, setUserId, setUserIdentity, setVerifyIdentity, verifyIdentity
-
Method Details
-
getHopCount
int getHopCount() -
setHopCount
void setHopCount(int hopCount) -
setBindingLogicServerIds
void setBindingLogicServerIds(int[] bindingLogicServerIds) -
getBindingLogicServerIds
int[] getBindingLogicServerIds()The IDs of multiple game logic servers bound to the playerAll requests related to this game logic server will be routed to the bound game logic server for processing. Even if multiple game logic servers of the same type are running, requests will still be directed to the originally bound server.- Returns:
- bindingLogicServerIds
-
setAttachment
void setAttachment(byte[] attachment) -
getAttachment
byte[] getAttachment()Extended field. Developers can use this field to extend meta-information for special business needs. The data in this field will be included with every request.- Returns:
- AttachmentData
-
setStick
default void setStick(int stick) -
getStick
default int getStick()
-