Package org.infinispan.commands.remote
Class BaseRpcCommand
- java.lang.Object
-
- org.infinispan.commands.remote.BaseRpcCommand
-
- All Implemented Interfaces:
CacheRpcCommand,ReplicableCommand
- Direct Known Subclasses:
BackupAckCommand,BackupWriteCommand,BaseClusteredReadCommand,CancelPublisherCommand,CompleteTransactionCommand,ConflictResolutionStartCommand,GetInDoubtTransactionsCommand,GetInDoubtTxInfoCommand,InitialPublisherCommand,InvalidateVersionsCommand,IracRequestStateCommand,MultiClusterEventCommand,NextPublisherCommand,RecoveryCommand,ReductionPublisherRequestCommand,RenewBiasCommand,RevokeBiasCommand,ScatteredStateConfirmRevokedCommand,ScatteredStateGetKeysCommand,SingleRpcCommand,StateResponseCommand,StateTransferCancelCommand,StateTransferGetListenersCommand,StateTransferGetTransactionsCommand,StateTransferStartCommand,TouchCommand,TxCompletionNotificationCommand,XSiteAmendOfflineStatusCommand,XSiteBringOnlineCommand,XSiteOfflineStatusCommand,XSiteReplicateCommand,XSiteStateTransferCancelSendCommand,XSiteStateTransferClearStatusCommand,XSiteStateTransferFinishSendCommand,XSiteStateTransferRestartSendingCommand,XSiteStateTransferStartSendCommand,XSiteStateTransferStatusRequestCommand,XSiteStatusCommand,XSiteTakeOfflineCommand
public abstract class BaseRpcCommand extends Object implements CacheRpcCommand
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteStringcacheNameprotected Addressorigin
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseRpcCommand(ByteString cacheName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteStringgetCacheName()AddressgetOrigin()Get the origin of the commandvoidsetOrigin(Address origin)Set the origin of the commandStringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.commands.remote.CacheRpcCommand
invokeAsync
-
Methods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, getCommandId, invoke, invokeAsync, isReturnValueExpected, isSuccessful, readFrom, writeTo
-
-
-
-
Field Detail
-
cacheName
protected final ByteString cacheName
-
origin
protected Address origin
-
-
Constructor Detail
-
BaseRpcCommand
protected BaseRpcCommand(ByteString cacheName)
-
-
Method Detail
-
getCacheName
public ByteString getCacheName()
- Specified by:
getCacheNamein interfaceCacheRpcCommand- Returns:
- the name of the cache that produced this command. This will also be the name of the cache this command is intended for.
-
getOrigin
public Address getOrigin()
Description copied from interface:CacheRpcCommandGet the origin of the command- Specified by:
getOriginin interfaceCacheRpcCommand
-
setOrigin
public void setOrigin(Address origin)
Description copied from interface:CacheRpcCommandSet the origin of the command- Specified by:
setOriginin interfaceCacheRpcCommand- Specified by:
setOriginin interfaceReplicableCommand- Parameters:
origin- the sender'sAddress
-
-