org.infinispan.commands.read
Class GetCacheEntryCommand
java.lang.Object
org.infinispan.commands.AbstractFlagAffectedCommand
org.infinispan.commands.read.AbstractDataCommand
org.infinispan.commands.read.GetKeyValueCommand
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
COMMAND_ID
public static final byte COMMAND_ID
- See Also:
- Constant Field Values
GetCacheEntryCommand
public GetCacheEntryCommand(Object key,
Set<Flag> flags)
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.
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.