Class AbstractCacheControlCommand

java.lang.Object
org.infinispan.commands.topology.AbstractCacheControlCommand
All Implemented Interfaces:
GlobalRpcCommand, ReplicableCommand, TracedCommand
Direct Known Subclasses:
CacheAvailabilityUpdateCommand, CacheJoinCommand, CacheLeaveCommand, CacheShutdownCommand, CacheShutdownRequestCommand, CacheStatusRequestCommand, RebalancePhaseConfirmCommand, RebalancePolicyUpdateCommand, RebalanceStartCommand, RebalanceStatusRequestCommand, TopologyUpdateCommand, TopologyUpdateStableCommand

public abstract class AbstractCacheControlCommand extends Object implements GlobalRpcCommand
Abstract class that is the basis for the Cache, Rebalance and Topology commands.
Since:
11.0
Author:
Ryan Emerson
  • Field Details

    • origin

      protected transient Address origin
  • Method Details

    • setOrigin

      public void setOrigin(Address origin)
      Description copied from interface: ReplicableCommand
      Sets the sender's Address.

      By default, it doesn't set anything. Implement this method if the sender's Address is needed.

      Specified by:
      setOrigin in interface ReplicableCommand
      Parameters:
      origin - the sender's Address
    • getCommandId

      public byte getCommandId()
      Description copied from interface: ReplicableCommand
      Used by marshallers to convert this command into an id for streaming.
      Specified by:
      getCommandId in interface ReplicableCommand
      Returns:
      the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.
    • isReturnValueExpected

      public boolean isReturnValueExpected()
      Description copied from interface: ReplicableCommand
      If true, a return value will be provided when performed remotely. Otherwise, a remote ResponseGenerator may choose to simply return null to save on marshalling costs.
      Specified by:
      isReturnValueExpected in interface ReplicableCommand
      Returns:
      true or false