Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.commands.read
Class GetCacheEntryCommand

java.lang.Object
  extended by org.infinispan.commands.AbstractFlagAffectedCommand
      extended by org.infinispan.commands.read.AbstractDataCommand
          extended by org.infinispan.commands.read.GetKeyValueCommand
              extended by org.infinispan.commands.read.GetCacheEntryCommand
All Implemented Interfaces:
DataCommand, FlagAffectedCommand, ReplicableCommand, TopologyAffectedCommand, VisitableCommand

public class GetCacheEntryCommand
extends GetKeyValueCommand

An internal cache get command that returns CacheEntry instead of just the value.

Since:
5.1
Author:
Galder ZamarreƱo

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
GetCacheEntryCommand(Object key, Set<Flag> flags)
           
 
Method Summary
 byte getCommandId()
          Used by marshallers to convert this command into an id for streaming.
 Object perform(InvocationContext ctx)
          Performs the primary function of the command.
 
Methods inherited from class org.infinispan.commands.read.GetKeyValueCommand
acceptVisitor, getParameters, getRemotelyFetchedValue, setParameters, setRemotelyFetchedValue
 
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, getTopologyId, hasFlag, setFlags, setFlags, setTopologyId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.infinispan.commands.TopologyAffectedCommand
getTopologyId, setTopologyId
 

Field Detail

COMMAND_ID

public static final byte COMMAND_ID
See Also:
Constant Field Values
Constructor Detail

GetCacheEntryCommand

public GetCacheEntryCommand(Object key,
                            Set<Flag> flags)
Method Detail

perform

public Object perform(InvocationContext ctx)
               throws Throwable
Description copied from interface: ReplicableCommand
Performs the primary function of the command. Please see specific implementation classes for details on what is performed as well as return types. Important: this method will be invoked at the end of interceptors chain. It should never be called directly from a custom interceptor.

Specified by:
perform in interface ReplicableCommand
Overrides:
perform in class GetKeyValueCommand
Parameters:
ctx - invocation context
Returns:
arbitrary return value generated by performing this command
Throws:
Throwable - in the event of problems.

getCommandId

public byte getCommandId()
Description copied from interface: ReplicableCommand
Used by marshallers to convert this command into an id for streaming.

Specified by:
getCommandId in interface ReplicableCommand
Overrides:
getCommandId in class GetKeyValueCommand
Returns:
the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.