org.ehcache.internal.store.heap.holders
Class SerializedOnHeapValueHolder<V>

java.lang.Object
  extended by org.ehcache.spi.cache.AbstractValueHolder<V>
      extended by org.ehcache.internal.store.heap.holders.OnHeapValueHolder<V>
          extended by org.ehcache.internal.store.heap.holders.SerializedOnHeapValueHolder<V>
All Implemented Interfaces:
java.io.Serializable, Store.ValueHolder<V>

public class SerializedOnHeapValueHolder<V>
extends OnHeapValueHolder<V>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ehcache.internal.store.heap.holders.OnHeapValueHolder
TIME_UNIT
 
Fields inherited from interface org.ehcache.spi.cache.Store.ValueHolder
NO_EXPIRE
 
Constructor Summary
protected SerializedOnHeapValueHolder(long id, V value, long creationTime, long expirationTime, Serializer<V> serializer)
           
  SerializedOnHeapValueHolder(Store.ValueHolder<V> valueHolder, V value, Serializer<V> serializer, long now, Duration expiration)
           
  SerializedOnHeapValueHolder(V value, long creationTime, long expirationTime, Serializer<V> serializer)
           
  SerializedOnHeapValueHolder(V value, long creationTime, Serializer<V> serializer)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
 V value()
          Accessor to the value held by this mapping.
 
Methods inherited from class org.ehcache.internal.store.heap.holders.OnHeapValueHolder
nativeTimeUnit
 
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
 

Constructor Detail

SerializedOnHeapValueHolder

protected SerializedOnHeapValueHolder(long id,
                                      V value,
                                      long creationTime,
                                      long expirationTime,
                                      Serializer<V> serializer)

SerializedOnHeapValueHolder

public SerializedOnHeapValueHolder(V value,
                                   long creationTime,
                                   Serializer<V> serializer)

SerializedOnHeapValueHolder

public SerializedOnHeapValueHolder(V value,
                                   long creationTime,
                                   long expirationTime,
                                   Serializer<V> serializer)

SerializedOnHeapValueHolder

public SerializedOnHeapValueHolder(Store.ValueHolder<V> valueHolder,
                                   V value,
                                   Serializer<V> serializer,
                                   long now,
                                   Duration expiration)
Method Detail

value

public final V value()
Description copied from interface: Store.ValueHolder
Accessor to the value held by this mapping.

Returns:
The value

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class OnHeapValueHolder<V>

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractValueHolder<V>