org.infinispan.commands.write
Class AbstractDataWriteCommand
java.lang.Object
org.infinispan.commands.AbstractFlagAffectedCommand
org.infinispan.commands.read.AbstractDataCommand
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
AbstractDataWriteCommand
protected AbstractDataWriteCommand()
AbstractDataWriteCommand
protected AbstractDataWriteCommand(Object key,
Set<Flag> flags)
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.