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, waitaddFlag, addFlags, addFlags, getFlags, hasAllFlags, hasAnyFlag, hasFlag, setFlagsacceptVisitor, init, loadTypecanBlock, getCommandId, invoke, invokeAsync, isSuccessful, readFrom, setOrigin, writeToextractSegmentprotected Object key
protected int segment
protected AbstractDataCommand(Object key, int segment, long flagsBitSet)
protected AbstractDataCommand()
public int getSegment()
SegmentSpecificCommandgetSegment in interface SegmentSpecificCommandpublic int getTopologyId()
getTopologyId in interface TopologyAffectedCommandpublic void setTopologyId(int topologyId)
setTopologyId in interface TopologyAffectedCommandpublic long getFlagsBitSet()
getFlagsBitSet in interface FlagAffectedCommandFlagAffectedCommand.setFlagsBitSet(long), FlagAffectedCommand.addFlags(long)
and FlagAffectedCommand.addFlags(Set) methods.public void setFlagsBitSet(long bitSet)
FlagAffectedCommandsetFlagsBitSet in interface FlagAffectedCommandpublic Object getKey()
getKey in interface DataCommandpublic void setKey(Object key)
public boolean isReturnValueExpected()
ReplicableCommandResponseGenerator may choose to simply return null to save on marshalling
costs.isReturnValueExpected in interface ReplicableCommandprotected final String printFlags()
Copyright © 2022 JBoss by Red Hat. All rights reserved.