Package org.infinispan.commands.remote
Interface CacheRpcCommand
- All Superinterfaces:
ReplicableCommand
- All Known Subinterfaces:
TransactionBoundaryCommand
- All Known Implementing Classes:
AbstractTransactionBoundaryCommand
,BackupAckCommand
,BackupMultiKeyAckCommand
,BackupNoopCommand
,BackupWriteCommand
,BaseClusteredReadCommand
,BaseRpcCommand
,CancelPublisherCommand
,CheckTransactionRpcCommand
,ClusteredGetAllCommand
,ClusteredGetCommand
,CommitCommand
,CompleteTransactionCommand
,ConflictResolutionStartCommand
,ExceptionAckCommand
,GetInDoubtTransactionsCommand
,GetInDoubtTxInfoCommand
,InitialPublisherCommand
,InvalidateVersionsCommand
,IracCleanupKeysCommand
,IracClearKeysCommand
,IracMetadataRequestCommand
,IracPutManyCommand
,IracRequestStateCommand
,IracStateResponseCommand
,IracTombstoneCleanupCommand
,IracTombstonePrimaryCheckCommand
,IracTombstoneRemoteSiteCheckCommand
,IracTombstoneStateResponseCommand
,IracTouchKeyCommand
,IracUpdateKeyCommand
,IracUpdateVersionCommand
,LockControlCommand
,MultiClusterEventCommand
,MultiEntriesFunctionalBackupWriteCommand
,MultiKeyFunctionalBackupWriteCommand
,NextPublisherCommand
,PrepareCommand
,PutMapBackupWriteCommand
,RecoveryCommand
,ReductionPublisherRequestCommand
,RenewBiasCommand
,RevokeBiasCommand
,RollbackCommand
,ScatteredStateConfirmRevokedCommand
,ScatteredStateGetKeysCommand
,SingleKeyBackupWriteCommand
,SingleKeyFunctionalBackupWriteCommand
,SingleRpcCommand
,SingleXSiteRpcCommand
,SizeCommand
,StateResponseCommand
,StateTransferCancelCommand
,StateTransferGetListenersCommand
,StateTransferGetTransactionsCommand
,StateTransferStartCommand
,TxCompletionNotificationCommand
,VersionedCommitCommand
,VersionedPrepareCommand
,XSiteAmendOfflineStatusCommand
,XSiteAutoTransferStatusCommand
,XSiteBringOnlineCommand
,XSiteOfflineStatusCommand
,XSiteReplicateCommand
,XSiteSetStateTransferModeCommand
,XSiteStatePushCommand
,XSiteStateTransferCancelSendCommand
,XSiteStateTransferClearStatusCommand
,XSiteStateTransferFinishReceiveCommand
,XSiteStateTransferFinishSendCommand
,XSiteStateTransferRestartSendingCommand
,XSiteStateTransferStartReceiveCommand
,XSiteStateTransferStartSendCommand
,XSiteStateTransferStatusRequestCommand
,XSiteStatusCommand
,XSiteTakeOfflineCommand
The
RpcManager
only replicates commands wrapped in a CacheRpcCommand
.- Since:
- 4.0
- Author:
- Manik Surtani, [email protected]
-
Method Summary
Modifier and TypeMethodDescriptionGet the origin of the commanddefault CompletionStage<?>
invokeAsync
(ComponentRegistry registry) Invoke the command asynchronously.void
Set the origin of the commandMethods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, getCommandId, invoke, invokeAsync, isReturnValueExpected, isSuccessful, logThrowable, readFrom, writeTo
-
Method Details
-
invokeAsync
Invoke the command asynchronously.This method replaces
ReplicableCommand.invoke()
for remote execution. The default implementation andReplicableCommand.invoke()
will be removed in future versions.- 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
Set the origin of the command- Specified by:
setOrigin
in interfaceReplicableCommand
- Parameters:
origin
- the sender'sAddress
-
getOrigin
Address getOrigin()Get the origin of the command
-