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
Abstract class that is the basis for the Cache, Rebalance and Topology commands.
- Since:
- 11.0
- Author:
- Ryan Emerson
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbyteUsed by marshallers to convert this command into an id for streaming.booleanIf true, a return value will be provided when performed remotely.voidSets the sender'sAddress.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commands.GlobalRpcCommand
invokeAsyncMethods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, invoke, invokeAsync, isSuccessful, logThrowable, readFrom, writeTo
-
Field Details
-
origin
-
-
Method Details
-
setOrigin
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
-