Interface TopologyAffectedCommand

  • All Superinterfaces:
    All Known Subinterfaces:
    All Known Implementing Classes:, AbstractTopologyAffectedCommand, TouchCommand

    public interface TopologyAffectedCommand
    extends ReplicableCommand
    Some of the commands sent over the wire can only be honored by the receiver if the topology of the cluster at delivery time is still 'compatible' with the topology in place at send time (eg. a 'get' command cannot execute on a node that is no longer owner after state transfer took place). These commands need to be tagged with the current topology id of the sender so the receiver can detect and handle topology mismatches.
    • Method Detail

      • getTopologyId

        int getTopologyId()
      • setTopologyId

        void setTopologyId​(int topologyId)