org.jboss.cache.commands
Interface VersionedDataCommand

All Superinterfaces:
DataCommand, ReplicableCommand, VisitableCommand, WriteCommand
All Known Implementing Classes:
AbstractVersionedDataCommand, ClearDataCommand, PessClearDataCommand, PessPutDataMapCommand, PessPutForExternalReadCommand, PessPutKeyValueCommand, PessRemoveKeyCommand, PessRemoveNodeCommand, PutDataMapCommand, PutForExternalReadCommand, PutKeyValueCommand, RemoveKeyCommand, RemoveNodeCommand, VersionedInvalidateCommand

public interface VersionedDataCommand
extends WriteCommand

Just like a DataCommand, except that these are versioned and reversible too. Versioning is currently used by optimistic locking, and in future will be used by MVCC as well.

Since:
2.2.0
Author:
Mircea.Markus@jboss.com, Manik Surtani (manik AT jboss DOT org)

Method Summary
 DataVersion getDataVersion()
           
 boolean isVersioned()
          Has data version set? (i.e.
 void setDataVersion(DataVersion dataVersion)
          Sets the DataVersion pertaining to this command.
 
Methods inherited from interface org.jboss.cache.commands.WriteCommand
getGlobalTransaction, setGlobalTransaction
 
Methods inherited from interface org.jboss.cache.commands.DataCommand
getFqn
 
Methods inherited from interface org.jboss.cache.commands.VisitableCommand
acceptVisitor
 
Methods inherited from interface org.jboss.cache.commands.ReplicableCommand
getCommandId, getParameters, perform, setParameters
 

Method Detail

getDataVersion

DataVersion getDataVersion()
Returns:
the DataVersion pertaining to this command.

setDataVersion

void setDataVersion(DataVersion dataVersion)
Sets the DataVersion pertaining to this command.

Parameters:
dataVersion - to set

isVersioned

boolean isVersioned()
Has data version set? (i.e. not null)

Returns:
true if getDataVersion() would not return null; false otherwise.


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