org.ehcache.transactions.xa
Class XAValueHolder<V>
java.lang.Object
org.ehcache.spi.cache.AbstractValueHolder<V>
org.ehcache.transactions.xa.XAValueHolder<V>
- All Implemented Interfaces:
- java.io.Serializable, Store.ValueHolder<V>
public class XAValueHolder<V>
- extends AbstractValueHolder<V>
The XAStore
Store.ValueHolder
implementation.
- See Also:
- Serialized Form
Methods inherited from class org.ehcache.spi.cache.AbstractValueHolder |
accessed, creationTime, expirationTime, getId, hitRate, hits, isExpired, lastAccessTime, setExpirationTime, setHits, setLastAccessTime, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
XAValueHolder
public XAValueHolder(Store.ValueHolder<SoftLock<V>> valueHolder,
V value)
XAValueHolder
public XAValueHolder(V value,
long creationTime)
XAValueHolder
public XAValueHolder(XAValueHolder<V> valueHolder,
V value)
copyForSerialization
protected XAValueHolder<V> copyForSerialization(Serializer<V> valueSerializer)
copyAfterDeserialization
protected XAValueHolder<V> copyAfterDeserialization(Serializer<V> valueSerializer)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
nativeTimeUnit
protected java.util.concurrent.TimeUnit nativeTimeUnit()
- Specified by:
nativeTimeUnit
in class AbstractValueHolder<V>
value
public V value()
- Description copied from interface:
Store.ValueHolder
- Accessor to the value held by this mapping.
- Returns:
- The value
hashCode
public int hashCode()
- Overrides:
hashCode
in class AbstractValueHolder<V>
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class AbstractValueHolder<V>