public class GetKeyValueCommand extends AbstractDataCommand
Map.get(Object)
and
Map.containsKey(Object)
operationsVisitableCommand.LoadType
Modifier and Type | Field and Description |
---|---|
static byte |
COMMAND_ID |
key, segment
Constructor and Description |
---|
GetKeyValueCommand() |
GetKeyValueCommand(Object key,
int segment,
long flagsBitSet) |
Modifier and Type | Method and Description |
---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor.
|
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
VisitableCommand.LoadType |
loadType() |
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput) . |
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput . |
equals, getFlagsBitSet, getKey, getSegment, getTopologyId, hashCode, isReturnValueExpected, printFlags, setFlagsBitSet, setKey, setTopologyId
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addFlag, addFlags, addFlags, getFlags, hasAllFlags, hasAnyFlag, hasFlag, setFlags
init
canBlock, invoke, invokeAsync, isSuccessful, setOrigin
extractSegment
public static final byte COMMAND_ID
public GetKeyValueCommand(Object key, int segment, long flagsBitSet)
public GetKeyValueCommand()
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemspublic VisitableCommand.LoadType loadType()
public byte getCommandId()
ReplicableCommand
public void writeTo(ObjectOutput output) throws IOException
ReplicableCommand
ObjectOutput
.output
- the stream.IOException
- if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommand
ReplicableCommand.writeTo(ObjectOutput)
.input
- the stream to read.IOException
- if an error occurred during the I/O.ClassNotFoundException
- if it tries to load an undefined class.public String toString()
toString
in class AbstractDataCommand
Copyright © 2021 JBoss by Red Hat. All rights reserved.