Package org.infinispan.commands.remote
Interface CacheRpcCommand
- All Superinterfaces:
ReplicableCommand,TracedCommand
- 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,IracCleanupKeysCommand,IracMetadataRequestCommand,IracRequestStateCommand,IracStateResponseCommand,IracTombstoneCleanupCommand,IracTombstonePrimaryCheckCommand,IracTombstoneRemoteSiteCheckCommand,IracTombstoneStateResponseCommand,IracUpdateVersionCommand,LockControlCommand,MultiClusterEventCommand,MultiEntriesFunctionalBackupWriteCommand,MultiKeyFunctionalBackupWriteCommand,NextPublisherCommand,PrepareCommand,PutMapBackupWriteCommand,ReductionPublisherRequestCommand,RollbackCommand,SingleKeyBackupWriteCommand,SingleKeyFunctionalBackupWriteCommand,SingleRpcCommand,SizeCommand,StateResponseCommand,StateTransferCancelCommand,StateTransferGetListenersCommand,StateTransferGetTransactionsCommand,StateTransferStartCommand,TxCompletionNotificationCommand,VersionedCommitCommand,VersionedPrepareCommand,XSiteAmendOfflineStatusCommand,XSiteAutoTransferStatusCommand,XSiteBringOnlineCommand,XSiteOfflineStatusCommand,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, Mircea.Markus@jboss.com
-
Method Summary
Modifier and TypeMethodDescriptionGet the origin of the commanddefault CompletionStage<?> invokeAsync(ComponentRegistry registry) Invoke the command asynchronously.voidSet the origin of the commandMethods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, getCommandId, invoke, invokeAsync, isReturnValueExpected, isSuccessful, logThrowable, readFrom, writeToMethods inherited from interface org.infinispan.commands.TracedCommand
getOperationName, getSpanAttributes, setSpanAttributes
-
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:
setOriginin interfaceReplicableCommand- Parameters:
origin- the sender'sAddress
-
getOrigin
Address getOrigin()Get the origin of the command
-