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

java.lang.Object
  extended by org.ehcache.core.spi.cache.AbstractValueHolder<V>
      extended by org.ehcache.impl.internal.store.heap.holders.OnHeapValueHolder<V>
          extended by org.ehcache.impl.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.impl.internal.store.heap.holders.OnHeapValueHolder
TIME_UNIT
 
Fields inherited from interface org.ehcache.core.spi.cache.Store.ValueHolder
NO_EXPIRE
 
Constructor Summary
protected SerializedOnHeapValueHolder(long id, V value, long creationTime, long expirationTime, boolean veto, Serializer<V> serializer)
           
  SerializedOnHeapValueHolder(Store.ValueHolder<V> valueHolder, V value, boolean veto, Serializer<V> serializer, long now, Duration expiration)
           
  SerializedOnHeapValueHolder(V value, long creationTime, boolean veto, Serializer<V> serializer)
           
  SerializedOnHeapValueHolder(V value, long creationTime, long expirationTime, boolean veto, 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.impl.internal.store.heap.holders.OnHeapValueHolder
nativeTimeUnit, setSize, size, veto
 
Methods inherited from class org.ehcache.core.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,
                                      boolean veto,
                                      Serializer<V> serializer)

SerializedOnHeapValueHolder

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

SerializedOnHeapValueHolder

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

SerializedOnHeapValueHolder

public SerializedOnHeapValueHolder(Store.ValueHolder<V> valueHolder,
                                   V value,
                                   boolean veto,
                                   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>