org.infinispan.commands.write
Class AbstractDataWriteCommand

java.lang.Object
  extended by org.infinispan.commands.AbstractFlagAffectedCommand
      extended by org.infinispan.commands.read.AbstractDataCommand
          extended by org.infinispan.commands.write.AbstractDataWriteCommand
All Implemented Interfaces:
DataCommand, FlagAffectedCommand, ReplicableCommand, VisitableCommand, DataWriteCommand, WriteCommand
Direct Known Subclasses:
ApplyDeltaCommand, PutKeyValueCommand, RemoveCommand, ReplaceCommand

public abstract class AbstractDataWriteCommand
extends AbstractDataCommand
implements DataWriteCommand

Stuff common to WriteCommands

Since:
4.0
Author:
Manik Surtani

Field Summary
 
Fields inherited from class org.infinispan.commands.read.AbstractDataCommand
key
 
Fields inherited from class org.infinispan.commands.AbstractFlagAffectedCommand
flags
 
Constructor Summary
protected AbstractDataWriteCommand()
           
protected AbstractDataWriteCommand(Object key, Set<Flag> flags)
           
 
Method Summary
 Set<Object> getAffectedKeys()
           
 boolean isReturnValueExpected()
          If true, a return value will be provided when performed remotely.
 
Methods inherited from class org.infinispan.commands.read.AbstractDataCommand
equals, getKey, getParameters, hashCode, ignoreCommandOnStatus, setKey, setParameters, 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
 
Methods inherited from interface org.infinispan.commands.write.WriteCommand
isConditional, isSuccessful
 
Methods inherited from interface org.infinispan.commands.FlagAffectedCommand
getFlags, hasFlag, setFlags
 
Methods inherited from interface org.infinispan.commands.DataCommand
getKey
 
Methods inherited from interface org.infinispan.commands.VisitableCommand
acceptVisitor, ignoreCommandOnStatus, shouldInvoke
 
Methods inherited from interface org.infinispan.commands.ReplicableCommand
getCommandId, getParameters, perform, setParameters
 

Constructor Detail

AbstractDataWriteCommand

protected AbstractDataWriteCommand()

AbstractDataWriteCommand

protected AbstractDataWriteCommand(Object key,
                                   Set<Flag> flags)
Method Detail

getAffectedKeys

public Set<Object> getAffectedKeys()
Specified by:
getAffectedKeys in interface WriteCommand
Returns:
a collection of keys affected by this write command. Some commands - such as ClearCommand - may return an empty collection for this method.

isReturnValueExpected

public boolean isReturnValueExpected()
Description copied from interface: ReplicableCommand
If true, a return value will be provided when performed remotely. Otherwise, a remote ResponseGenerator may choose to simply return null to save on marshalling costs.

Specified by:
isReturnValueExpected in interface ReplicableCommand
Overrides:
isReturnValueExpected in class AbstractDataCommand
Returns:
true or false

-->

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