public class GetKeyValueCommand extends AbstractDataCommand
Map.get(Object) and
Map.containsKey(Object) operations| Modifier and Type | Field and Description |
|---|---|
static byte |
COMMAND_ID |
keyflags| Constructor and Description |
|---|
GetKeyValueCommand() |
GetKeyValueCommand(Object key,
Set<Flag> flags,
boolean returnEntry) |
| 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.
|
Object[] |
getParameters()
Used by marshallers to stream this command across a network
|
InternalCacheEntry |
getRemotelyFetchedValue()
If the cache needs to go remotely in order to obtain the value associated to this key, then the remote value
is stored in this field.
|
boolean |
isReturnEntry() |
Object |
perform(InvocationContext ctx)
Performs the primary function of the command.
|
void |
setParameters(int commandId,
Object[] parameters)
Used by the
CommandsFactory to create a command from raw data read off a stream. |
void |
setRemotelyFetchedValue(InternalCacheEntry remotelyFetchedValue) |
canBlock, equals, getKey, hashCode, ignoreCommandOnStatus, isReturnValueExpected, setKey, shouldInvoke, toStringgetMetadata, getTopologyId, setMetadata, setTopologyIdgetFlags, hasFlag, setFlags, setFlagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTopologyId, setTopologyIdgetFlags, hasFlag, setFlags, setFlagspublic static final byte COMMAND_ID
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemspublic Object perform(InvocationContext ctx) throws Throwable
ReplicableCommandctx - invocation contextThrowable - in the event of problems.public byte getCommandId()
ReplicableCommandpublic void setParameters(int commandId,
Object[] parameters)
ReplicableCommandCommandsFactory to create a command from raw data read off a stream.setParameters in interface ReplicableCommandsetParameters in class AbstractDataCommandcommandId - command id to set. This is usually unused but *could* be used in the event of a command having
multiple IDs, such as PutKeyValueCommand.parameters - object array of argspublic Object[] getParameters()
ReplicableCommandgetParameters in interface ReplicableCommandgetParameters in class AbstractDataCommandpublic void setRemotelyFetchedValue(InternalCacheEntry remotelyFetchedValue)
getRemotelyFetchedValue()public InternalCacheEntry getRemotelyFetchedValue()
public boolean isReturnEntry()
Copyright © 2013 JBoss, a division of Red Hat. All rights reserved.