org.ehcache.transactions.xa.commands
Class StoreEvictCommand<V>

java.lang.Object
  extended by org.ehcache.transactions.xa.commands.StoreEvictCommand<V>
All Implemented Interfaces:
Command<V>

public class StoreEvictCommand<V>
extends java.lang.Object
implements Command<V>

Command implementation representing an eviction.


Constructor Summary
StoreEvictCommand(V oldValue)
           
 
Method Summary
 XAValueHolder<V> getNewValueHolder()
          Get the value holder to commit.
 V getOldValue()
          Get the value to rollback to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreEvictCommand

public StoreEvictCommand(V oldValue)
Method Detail

getOldValue

public V getOldValue()
Description copied from interface: Command
Get the value to rollback to.

Specified by:
getOldValue in interface Command<V>
Returns:
the old value.

getNewValueHolder

public XAValueHolder<V> getNewValueHolder()
Description copied from interface: Command
Get the value holder to commit.

Specified by:
getNewValueHolder in interface Command<V>
Returns:
the new value holder.