Class BindingLogicServerMessage
java.lang.Object
com.iohao.net.framework.protocol.BindingLogicServerMessage
Message that requests a dynamic binding change between users and logic servers.
Carries the target user ids, logic server ids, and the BindingEnum operation
that determines how the binding set is modified (cover, append, remove, or clear).
Instances are created via the fluent BindingLogicServerMessage.Builder.
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-18
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFluent builder for constructingBindingLogicServerMessageinstances. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder(BindingEnum operation) Create a newBindingLogicServerMessage.Builderfor the given binding operation.intIdentifier of the external server that initiated the binding.longCorrelation id for asynchronous request/response matching.int[]Logic server ids involved in this binding operation.The binding operation to perform.intNetwork id of the originating server.long[]User ids affected by this binding operation.ofClone()Create a shallow clone of this message, copying all fields except futureId and externalServerId.voidsetExternalServerId(int externalServerId) Identifier of the external server that initiated the binding.voidsetFutureId(long futureId) Correlation id for asynchronous request/response matching.toString()
-
Constructor Details
-
BindingLogicServerMessage
public BindingLogicServerMessage()
-
-
Method Details
-
ofClone
Create a shallow clone of this message, copying all fields except futureId and externalServerId.- Returns:
- a new
BindingLogicServerMessagewith the same core field values
-
builder
Create a newBindingLogicServerMessage.Builderfor the given binding operation.- Parameters:
operation- the binding operation type (cover, append, remove, or clear)- Returns:
- a new builder instance
-
getFutureId
public long getFutureId()Correlation id for asynchronous request/response matching. -
getSourceNetId
public int getSourceNetId()Network id of the originating server. -
getExternalServerId
public int getExternalServerId()Identifier of the external server that initiated the binding. -
getUserIds
public long[] getUserIds()User ids affected by this binding operation. -
getLogicServerIds
public int[] getLogicServerIds()Logic server ids involved in this binding operation. -
getOperation
The binding operation to perform. -
toString
-
setFutureId
public void setFutureId(long futureId) Correlation id for asynchronous request/response matching. -
setExternalServerId
public void setExternalServerId(int externalServerId) Identifier of the external server that initiated the binding.
-