org.ehcache.transactions.xa.commands
Interface Command<V>

All Known Implementing Classes:
StoreEvictCommand, StorePutCommand, StoreRemoveCommand

public interface Command<V>

A representation of in-flight transaction's modification to the mappings of a XAStore.


Method Summary
 XAValueHolder<V> getNewValueHolder()
          Get the value holder to commit.
 V getOldValue()
          Get the value to rollback to.
 

Method Detail

getOldValue

V getOldValue()
Get the value to rollback to.

Returns:
the old value.

getNewValueHolder

XAValueHolder<V> getNewValueHolder()
Get the value holder to commit.

Returns:
the new value holder.