Class BindingLogicServerMessage

java.lang.Object
com.iohao.net.framework.protocol.BindingLogicServerMessage

public final class BindingLogicServerMessage extends Object
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
  • Constructor Details

    • BindingLogicServerMessage

      public BindingLogicServerMessage()
  • Method Details

    • ofClone

      public BindingLogicServerMessage ofClone()
      Create a shallow clone of this message, copying all fields except futureId and externalServerId.
      Returns:
      a new BindingLogicServerMessage with the same core field values
    • builder

      public static BindingLogicServerMessage.Builder builder(BindingEnum operation)
      Create a new BindingLogicServerMessage.Builder for 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

      public BindingEnum getOperation()
      The binding operation to perform.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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.