Class XSiteReplicateCommand<O>

java.lang.Object
org.infinispan.commands.remote.BaseRpcCommand
org.infinispan.xsite.XSiteReplicateCommand<O>
All Implemented Interfaces:
CacheRpcCommand, ReplicableCommand
Direct Known Subclasses:
IracTombstoneRemoteSiteCheckCommand, IracTouchKeyCommand, IracUpdateKeyCommand, SingleXSiteRpcCommand, XSiteStatePushCommand, XSiteStateTransferFinishReceiveCommand, XSiteStateTransferStartReceiveCommand

public abstract class XSiteReplicateCommand<O> extends BaseRpcCommand
Abstract class to invoke RPC on the remote site.
Since:
7.0
Author:
Pedro Ruivo
  • Field Details

    • originSite

      protected String originSite
  • Constructor Details

    • XSiteReplicateCommand

      protected XSiteReplicateCommand(byte commandId, ByteString cacheName)
  • Method Details

    • performInLocalSite

      public CompletionStage<O> performInLocalSite(ComponentRegistry registry, boolean preserveOrder)
    • performInLocalSite

      public abstract CompletionStage<O> performInLocalSite(BackupReceiver receiver, boolean preserveOrder)
    • setOriginSite

      public void setOriginSite(String originSite)
    • 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.
      Returns:
      true or false
    • getCommandId

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