Package org.infinispan.commands.topology
Class AbstractCacheControlCommand
- java.lang.Object
-
- org.infinispan.commands.topology.AbstractCacheControlCommand
-
- All Implemented Interfaces:
GlobalRpcCommand,ReplicableCommand
- Direct Known Subclasses:
CacheAvailabilityUpdateCommand,CacheJoinCommand,CacheLeaveCommand,CacheShutdownCommand,CacheShutdownRequestCommand,CacheStatusRequestCommand,RebalancePhaseConfirmCommand,RebalancePolicyUpdateCommand,RebalanceStartCommand,RebalanceStatusRequestCommand,TopologyUpdateCommand,TopologyUpdateStableCommand
public abstract class AbstractCacheControlCommand extends Object implements GlobalRpcCommand
Abstract class that is the basis for the Cache, Rebalance and Topology commands.- Since:
- 11.0
- Author:
- Ryan Emerson
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetCommandId()Used by marshallers to convert this command into an id for streaming.booleanisReturnValueExpected()If true, a return value will be provided when performed remotely.voidsetOrigin(Address origin)Sets the sender'sAddress.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.commands.GlobalRpcCommand
invokeAsync
-
Methods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, invoke, invokeAsync, isSuccessful, readFrom, writeTo
-
-
-
-
Field Detail
-
origin
protected transient Address origin
-
-
Method Detail
-
setOrigin
public void setOrigin(Address origin)
Description copied from interface:ReplicableCommandSets the sender'sAddress.By default, it doesn't set anything. Implement this method if the sender's
Addressis needed.- Specified by:
setOriginin interfaceReplicableCommand- Parameters:
origin- the sender'sAddress
-
getCommandId
public byte getCommandId()
Description copied from interface:ReplicableCommandUsed by marshallers to convert this command into an id for streaming.- Specified by:
getCommandIdin interfaceReplicableCommand- Returns:
- the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.
-
isReturnValueExpected
public boolean isReturnValueExpected()
Description copied from interface:ReplicableCommandIf true, a return value will be provided when performed remotely. Otherwise, a remoteResponseGeneratormay choose to simply return null to save on marshalling costs.- Specified by:
isReturnValueExpectedin interfaceReplicableCommand- Returns:
- true or false
-
-