org.ehcache.transactions.xa
Class SoftLock<V>

java.lang.Object
  extended by org.ehcache.transactions.xa.SoftLock<V>
All Implemented Interfaces:
java.io.Serializable

public class SoftLock<V>
extends java.lang.Object
implements java.io.Serializable

SoftLocks are the value containers stored in the underlying store by the XAStore. A SoftLock contains three essential things:

See Also:
Serialized Form

Constructor Summary
SoftLock(TransactionId transactionId, V oldValue, XAValueHolder<V> newValueHolder)
           
 
Method Summary
protected  SoftLock<V> copyAfterDeserialization(Serializer<V> valueSerializer, SoftLock<V> serializedSoftLock)
           
protected  SoftLock<V> copyForSerialization(Serializer<V> valueSerializer)
           
 boolean equals(java.lang.Object o)
           
 XAValueHolder<V> getNewValueHolder()
           
 V getOldValue()
           
 TransactionId getTransactionId()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoftLock

public SoftLock(TransactionId transactionId,
                V oldValue,
                XAValueHolder<V> newValueHolder)
Method Detail

copyForSerialization

protected SoftLock<V> copyForSerialization(Serializer<V> valueSerializer)

copyAfterDeserialization

protected SoftLock<V> copyAfterDeserialization(Serializer<V> valueSerializer,
                                               SoftLock<V> serializedSoftLock)
                                        throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

getOldValue

public V getOldValue()

getNewValueHolder

public XAValueHolder<V> getNewValueHolder()

getTransactionId

public TransactionId getTransactionId()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object