org.jboss.cache.commands.write
Class PutForExternalReadCommand
java.lang.Object
org.jboss.cache.commands.read.AbstractDataCommand
org.jboss.cache.commands.write.AbstractVersionedDataCommand
org.jboss.cache.commands.write.PutKeyValueCommand
org.jboss.cache.commands.write.PutForExternalReadCommand
- All Implemented Interfaces:
- DataCommand, ReplicableCommand, VersionedDataCommand, VisitableCommand, WriteCommand
- Direct Known Subclasses:
- PessPutForExternalReadCommand
public class PutForExternalReadCommand
- extends PutKeyValueCommand
Represents the Cache.putForExternalRead(org.jboss.cache.Fqn, Object, Object)
method call.
- Since:
- 2.2.0
- Author:
- Manik Surtani (manik AT jboss DOT org)
METHOD_ID
public static final int METHOD_ID
- See Also:
- Constant Field Values
VERSIONED_METHOD_ID
public static final int VERSIONED_METHOD_ID
- See Also:
- Constant Field Values
PutForExternalReadCommand
public PutForExternalReadCommand(GlobalTransaction gtx,
Fqn fqn,
Object key,
Object value)
PutForExternalReadCommand
public PutForExternalReadCommand()
getCommandId
public int 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 PutKeyValueCommand
- Returns:
- the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.
isVersionedId
protected boolean isVersionedId(int commandId)
- Overrides:
isVersionedId
in class PutKeyValueCommand
acceptVisitor
public Object acceptVisitor(InvocationContext ctx,
Visitor visitor)
throws Throwable
- Description copied from interface:
VisitableCommand
- Accept a visitor, and return the result of accepting this visitor.
- Specified by:
acceptVisitor
in interface VisitableCommand
- Overrides:
acceptVisitor
in class PutKeyValueCommand
- Parameters:
ctx
- invocation contextvisitor
- visitor to accept
- Returns:
- arbitrary return value
- Throws:
Throwable
- in the event of problems
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.