Interface CacheRpcCommand

All Superinterfaces:
ReplicableCommand, TracedCommand, VersionAware
All Known Subinterfaces:
DataCommand, DataWriteCommand, FlagAffectedCommand, TransactionBoundaryCommand, VisitableCommand, WriteCommand
All Known Implementing Classes:
AbstractDataCommand, AbstractDataWriteCommand, AbstractFlagAffectedCommand, AbstractLocalCommand, AbstractTopologyAffectedCommand, AbstractTransactionBoundaryCommand, AbstractWriteKeyCommand, AbstractWriteManyCommand, BackupMultiKeyAckCommand, BackupNoopCommand, BackupWriteCommand, BaseClusteredReadCommand, BaseRpcCommand, CheckTransactionRpcCommand, ClearCommand, ClusteredGetAllCommand, ClusteredGetCommand, CommitCommand, CompleteTransactionCommand, ComputeCommand, ComputeIfAbsentCommand, ConflictResolutionStartCommand, EntrySetCommand, EvictCommand, ExceptionAckCommand, GetAllCommand, GetCacheEntryCommand, GetInDoubtTransactionsCommand, GetInDoubtTxInfoCommand, GetKeyValueCommand, InvalidateCommand, InvalidateL1Command, IracCleanupKeysCommand, IracMetadataRequestCommand, IracPrimaryPendingKeyCheckCommand, IracPutKeyValueCommand, IracRequestStateCommand, IracStateResponseCommand, IracTombstoneCleanupCommand, IracTombstonePrimaryCheckCommand, IracTombstoneRemoteSiteCheckCommand, IracTombstoneStateResponseCommand, IracUpdateVersionCommand, KeySetCommand, LockControlCommand, MultiClusterEventCommand, MultiEntriesFunctionalBackupWriteCommand, MultiKeyFunctionalBackupWriteCommand, PrepareCommand, PutKeyValueCommand, PutMapBackupWriteCommand, PutMapCommand, ReadOnlyKeyCommand, ReadOnlyManyCommand, ReadWriteKeyCommand, ReadWriteKeyValueCommand, ReadWriteManyCommand, ReadWriteManyEntriesCommand, RemoveCommand, RemoveExpiredCommand, ReplaceCommand, RollbackCommand, SingleKeyBackupWriteCommand, SingleKeyFunctionalBackupWriteCommand, SizeCommand, StateResponseCommand, StateTransferCancelCommand, StateTransferGetListenersCommand, StateTransferGetTransactionsCommand, StateTransferStartCommand, TouchCommand, TxCompletionNotificationCommand, TxReadOnlyKeyCommand, TxReadOnlyManyCommand, VersionedCommitCommand, VersionedPrepareCommand, WriteOnlyKeyCommand, WriteOnlyKeyValueCommand, WriteOnlyManyCommand, WriteOnlyManyEntriesCommand, XSiteAmendOfflineStatusCommand, XSiteAutoTransferStatusCommand, XSiteSetStateTransferModeCommand, XSiteStatePushCommand, XSiteStateTransferCancelSendCommand, XSiteStateTransferClearStatusCommand, XSiteStateTransferFinishReceiveCommand, XSiteStateTransferFinishSendCommand, XSiteStateTransferRestartSendingCommand, XSiteStateTransferStartReceiveCommand, XSiteStateTransferStartSendCommand, XSiteStateTransferStatusRequestCommand

public interface CacheRpcCommand extends ReplicableCommand
The RpcManager only replicates commands wrapped in a CacheRpcCommand.
Since:
4.0
Author:
Manik Surtani, Mircea.Markus@jboss.com
  • Method Details

    • invokeAsync

      CompletionStage<?> invokeAsync(ComponentRegistry registry) throws Throwable
      Invoke the command asynchronously.
      Throws:
      Throwable
      Since:
      11.0
    • getCacheName

      ByteString getCacheName()
      Returns:
      the name of the cache that produced this command. This will also be the name of the cache this command is intended for.
    • setOrigin

      void setOrigin(Address origin)
      Set the origin of the command
      Specified by:
      setOrigin in interface ReplicableCommand
      Parameters:
      origin - the sender's Address
    • getOrigin

      Address getOrigin()
      Get the origin of the command