org.jboss.cache.commands.write
Class PutForExternalReadCommand

java.lang.Object
  extended by org.jboss.cache.commands.read.AbstractDataCommand
      extended by org.jboss.cache.commands.write.AbstractVersionedDataCommand
          extended by org.jboss.cache.commands.write.PutKeyValueCommand
              extended by org.jboss.cache.commands.write.PutForExternalReadCommand
All Implemented Interfaces:
Cloneable, DataCommand, ReplicableCommand, ReversibleCommand, VersionedDataCommand, VisitableCommand

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@jboss.org)

Field Summary
static int METHOD_ID
           
static int VERSIONED_METHOD_ID
           
 
Fields inherited from class org.jboss.cache.commands.write.PutKeyValueCommand
key, oldValue, value
 
Fields inherited from class org.jboss.cache.commands.write.AbstractVersionedDataCommand
dataVersion, globalTransaction, notifier
 
Fields inherited from class org.jboss.cache.commands.read.AbstractDataCommand
dataContainer, fqn
 
Constructor Summary
PutForExternalReadCommand()
           
PutForExternalReadCommand(GlobalTransaction gtx, Fqn fqn, Object key, Object value)
           
 
Method Summary
 Object acceptVisitor(InvocationContext ctx, Visitor visitor)
          Accept a visitor, and return the result of accepting this visitor.
 int getCommandId()
          Used by marshallers to convert this command into an id for streaming.
protected  boolean isVersionedId(int commandId)
           
 
Methods inherited from class org.jboss.cache.commands.write.PutKeyValueCommand
equals, getKey, getParameters, getValue, hashCode, perform, rollback, setKey, setParameters, setValue, toString
 
Methods inherited from class org.jboss.cache.commands.write.AbstractVersionedDataCommand
getDataVersion, getGlobalTransaction, initialize, isVersioned, setDataVersion, setGlobalTransaction
 
Methods inherited from class org.jboss.cache.commands.read.AbstractDataCommand
getFqn, initialize
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.cache.commands.DataCommand
getFqn
 

Field Detail

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
Constructor Detail

PutForExternalReadCommand

public PutForExternalReadCommand(GlobalTransaction gtx,
                                 Fqn fqn,
                                 Object key,
                                 Object value)

PutForExternalReadCommand

public PutForExternalReadCommand()
Method Detail

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 context
visitor - 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.