|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infinispan.commands.AbstractFlagAffectedCommand org.infinispan.commands.read.AbstractDataCommand org.infinispan.commands.read.GetKeyValueCommand
public class GetKeyValueCommand
Implements functionality defined by Map.get(Object)
and
Map.containsKey(Object)
operations
Field Summary | |
---|---|
static byte |
COMMAND_ID
|
Fields inherited from class org.infinispan.commands.read.AbstractDataCommand |
---|
key |
Fields inherited from class org.infinispan.commands.AbstractFlagAffectedCommand |
---|
flags |
Constructor Summary | |
---|---|
GetKeyValueCommand()
|
|
GetKeyValueCommand(Object key,
CacheNotifier notifier,
Set<Flag> flags)
|
Method Summary | |
---|---|
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 |
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 |
setReturnCacheEntry(boolean returnCacheEntry)
Will make this method to return an CacheEntry instead of the corresponding value associated with the key. |
Methods inherited from class org.infinispan.commands.read.AbstractDataCommand |
---|
equals, getKey, hashCode, ignoreCommandOnStatus, isReturnValueExpected, setKey, shouldInvoke, toString |
Methods inherited from class org.infinispan.commands.AbstractFlagAffectedCommand |
---|
getFlags, hasFlag, setFlags |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte COMMAND_ID
Constructor Detail |
---|
public GetKeyValueCommand(Object key, CacheNotifier notifier, Set<Flag> flags)
public GetKeyValueCommand()
Method Detail |
---|
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
ctx
- invocation contextvisitor
- visitor to accept
Throwable
- in the event of problemspublic void setReturnCacheEntry(boolean returnCacheEntry)
CacheEntry
instead of the corresponding value associated with the key.
public Object perform(InvocationContext ctx) throws Throwable
ReplicableCommand
ctx
- invocation context
Throwable
- in the event of problems.public byte getCommandId()
ReplicableCommand
public void setParameters(int commandId, Object[] parameters)
ReplicableCommand
CommandsFactory
to create a command from raw data read off a stream.
setParameters
in interface ReplicableCommand
setParameters
in class AbstractDataCommand
commandId
- 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()
ReplicableCommand
getParameters
in interface ReplicableCommand
getParameters
in class AbstractDataCommand
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |