Class BaseClusteredReadCommand
java.lang.Object
org.infinispan.commands.remote.BaseRpcCommand
org.infinispan.commands.remote.BaseClusteredReadCommand
- All Implemented Interfaces:
CacheRpcCommand, ReplicableCommand, TopologyAffectedCommand, TracedCommand, VersionAware
- Direct Known Subclasses:
ClusteredGetAllCommand, ClusteredGetCommand
public abstract class BaseClusteredReadCommand
extends BaseRpcCommand
implements TopologyAffectedCommand
- Author:
- Radim Vansa <rvansa@redhat.com>
-
Field Summary
FieldsFields inherited from class BaseRpcCommand
cacheName, origin -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseClusteredReadCommand(ByteString cacheName, int topologyId, long flagBitSet) -
Method Summary
Modifier and TypeMethodDescriptionlongintbooleanhasAnyFlag(long flagBitSet) booleanIf true, a return value will be provided when performed remotely.protected final StringvoidsetFlagsBitSet(long bitSet) voidsetTopologyId(int topologyId) Methods inherited from class BaseRpcCommand
getCacheName, getOrigin, setOrigin, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CacheRpcCommand
invokeAsyncMethods inherited from interface ReplicableCommand
getCommandId, isSuccessful, logThrowable, readFrom, supportedSince, writeToMethods inherited from interface TracedCommand
getOperationName, getSpanAttributes, setSpanAttributes
-
Field Details
-
topologyId
protected int topologyId -
flags
protected long flags
-
-
Constructor Details
-
BaseClusteredReadCommand
-
-
Method Details
-
getFlagsBitSet
public long getFlagsBitSet() -
setFlagsBitSet
public void setFlagsBitSet(long bitSet) -
printFlags
-
hasAnyFlag
public boolean hasAnyFlag(long flagBitSet) -
getTopologyId
@ProtoField(2) public int getTopologyId()- Specified by:
getTopologyIdin interfaceTopologyAffectedCommand
-
setTopologyId
public void setTopologyId(int topologyId) - Specified by:
setTopologyIdin interfaceTopologyAffectedCommand
-
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
-