Package org.infinispan.commands.remote
Interface CacheRpcCommand
-
- All Superinterfaces:
ReplicableCommand
- All Known Subinterfaces:
TransactionBoundaryCommand
- All Known Implementing Classes:
AbstractTransactionBoundaryCommand,BackupAckCommand,BackupMultiKeyAckCommand,BackupWriteCommand,BaseClusteredReadCommand,BaseRpcCommand,CancelPublisherCommand,CheckTransactionRpcCommand,ClusteredGetAllCommand,ClusteredGetCommand,CommitCommand,CompleteTransactionCommand,ConflictResolutionStartCommand,ExceptionAckCommand,GetInDoubtTransactionsCommand,GetInDoubtTxInfoCommand,InitialPublisherCommand,InvalidateVersionsCommand,IracCleanupKeyCommand,IracClearKeysCommand,IracMetadataRequestCommand,IracPutKeyCommand,IracRemoveKeyCommand,IracRequestStateCommand,IracStateResponseCommand,IracUpdateKeyCommand,LockControlCommand,MultiClusterEventCommand,MultiEntriesFunctionalBackupWriteCommand,MultiKeyFunctionalBackupWriteCommand,NextPublisherCommand,PrepareCommand,PutMapBackupWriteCommand,RecoveryCommand,ReductionPublisherRequestCommand,RenewBiasCommand,RevokeBiasCommand,RollbackCommand,ScatteredStateConfirmRevokedCommand,ScatteredStateGetKeysCommand,SingleKeyBackupWriteCommand,SingleKeyFunctionalBackupWriteCommand,SingleRpcCommand,SingleXSiteRpcCommand,StateResponseCommand,StateTransferCancelCommand,StateTransferGetListenersCommand,StateTransferGetTransactionsCommand,StateTransferStartCommand,TouchCommand,TxCompletionNotificationCommand,VersionedCommitCommand,VersionedPrepareCommand,XSiteAmendOfflineStatusCommand,XSiteBringOnlineCommand,XSiteOfflineStatusCommand,XSiteReplicateCommand,XSiteStatePushCommand,XSiteStateTransferCancelSendCommand,XSiteStateTransferClearStatusCommand,XSiteStateTransferFinishReceiveCommand,XSiteStateTransferFinishSendCommand,XSiteStateTransferRestartSendingCommand,XSiteStateTransferStartReceiveCommand,XSiteStateTransferStartSendCommand,XSiteStateTransferStatusRequestCommand,XSiteStatusCommand,XSiteTakeOfflineCommand
public interface CacheRpcCommand extends ReplicableCommand
TheRpcManageronly replicates commands wrapped in aCacheRpcCommand.- Since:
- 4.0
- Author:
- Manik Surtani, Mircea.Markus@jboss.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ByteStringgetCacheName()AddressgetOrigin()Get the origin of the commanddefault CompletionStage<?>invokeAsync(ComponentRegistry registry)Invoke the command asynchronously.voidsetOrigin(Address origin)Set the origin of the command-
Methods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, getCommandId, invoke, invokeAsync, isReturnValueExpected, isSuccessful, readFrom, writeTo
-
-
-
-
Method Detail
-
invokeAsync
default CompletionStage<?> invokeAsync(ComponentRegistry registry) throws Throwable
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
void setOrigin(Address origin)
Set the origin of the command- Specified by:
setOriginin interfaceReplicableCommand- Parameters:
origin- the sender'sAddress
-
getOrigin
Address getOrigin()
Get the origin of the command
-
-