public abstract class AbstractDataCommand extends Object implements DataCommand, SegmentSpecificCommand
VisitableCommand.LoadType
Modifier and Type | Field and Description |
---|---|
protected Object |
key |
protected int |
segment |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDataCommand() |
protected |
AbstractDataCommand(Object key,
int segment,
long flagsBitSet) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getFlagsBitSet() |
Object |
getKey() |
int |
getSegment()
Returns the segment that this key maps to.
|
int |
getTopologyId() |
int |
hashCode() |
boolean |
isReturnValueExpected()
If true, a return value will be provided when performed remotely.
|
protected String |
printFlags() |
void |
setFlagsBitSet(long bitSet)
Set the flags, replacing any existing flags.
|
void |
setKey(Object key) |
void |
setTopologyId(int topologyId) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addFlag, addFlags, addFlags, getFlags, hasAllFlags, hasAnyFlag, hasFlag, setFlags
acceptVisitor, init, loadType
canBlock, getCommandId, invoke, invokeAsync, isSuccessful, readFrom, setOrigin, writeTo
extractSegment
protected Object key
protected int segment
protected AbstractDataCommand(Object key, int segment, long flagsBitSet)
protected AbstractDataCommand()
public int getSegment()
SegmentSpecificCommand
getSegment
in interface SegmentSpecificCommand
public int getTopologyId()
getTopologyId
in interface TopologyAffectedCommand
public void setTopologyId(int topologyId)
setTopologyId
in interface TopologyAffectedCommand
public long getFlagsBitSet()
getFlagsBitSet
in interface FlagAffectedCommand
FlagAffectedCommand.setFlagsBitSet(long)
, FlagAffectedCommand.addFlags(long)
and FlagAffectedCommand.addFlags(Set)
methods.public void setFlagsBitSet(long bitSet)
FlagAffectedCommand
setFlagsBitSet
in interface FlagAffectedCommand
public Object getKey()
getKey
in interface DataCommand
public void setKey(Object key)
public boolean isReturnValueExpected()
ReplicableCommand
ResponseGenerator
may choose to simply return null to save on marshalling
costs.isReturnValueExpected
in interface ReplicableCommand
protected final String printFlags()
Copyright © 2021 JBoss by Red Hat. All rights reserved.