Class BaseClusteredReadCommand

java.lang.Object
org.infinispan.commands.remote.BaseRpcCommand
org.infinispan.commands.remote.BaseClusteredReadCommand
All Implemented Interfaces:
CacheRpcCommand, ReplicableCommand, TopologyAffectedCommand, TracedCommand, VersionAware
Direct Known Subclasses:
ClusteredGetAllCommand, ClusteredGetCommand

public abstract class BaseClusteredReadCommand extends BaseRpcCommand implements TopologyAffectedCommand
Author:
Radim Vansa <rvansa@redhat.com>
  • Field Details

    • topologyId

      protected int topologyId
    • flags

      protected long flags
  • Constructor Details

    • BaseClusteredReadCommand

      protected BaseClusteredReadCommand(ByteString cacheName, int topologyId, long flagBitSet)
  • Method Details

    • getFlagsBitSet

      public long getFlagsBitSet()
    • setFlagsBitSet

      public void setFlagsBitSet(long bitSet)
    • printFlags

      protected final String printFlags()
    • hasAnyFlag

      public boolean hasAnyFlag(long flagBitSet)
    • getTopologyId

      @ProtoField(2) public int getTopologyId()
      Specified by:
      getTopologyId in interface TopologyAffectedCommand
    • setTopologyId

      public void setTopologyId(int topologyId)
      Specified by:
      setTopologyId in interface TopologyAffectedCommand
    • 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