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

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

public abstract class OnHeapValueHolder<V>
extends AbstractValueHolder<V>

See Also:
Serialized Form

Field Summary
static java.util.concurrent.TimeUnit TIME_UNIT
           
 
Fields inherited from interface org.ehcache.spi.cache.Store.ValueHolder
NO_EXPIRE
 
Constructor Summary
protected OnHeapValueHolder(long id, long creationTime)
           
protected OnHeapValueHolder(long id, long creationTime, long expirationTime)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
protected  java.util.concurrent.TimeUnit nativeTimeUnit()
           
 
Methods inherited from class org.ehcache.spi.cache.AbstractValueHolder
accessed, creationTime, expirationTime, getId, hashCode, hitRate, hits, isExpired, lastAccessTime, setExpirationTime, setHits, setLastAccessTime, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ehcache.spi.cache.Store.ValueHolder
value
 

Field Detail

TIME_UNIT

public static final java.util.concurrent.TimeUnit TIME_UNIT
Constructor Detail

OnHeapValueHolder

protected OnHeapValueHolder(long id,
                            long creationTime)

OnHeapValueHolder

protected OnHeapValueHolder(long id,
                            long creationTime,
                            long expirationTime)
Method Detail

nativeTimeUnit

protected final java.util.concurrent.TimeUnit nativeTimeUnit()
Specified by:
nativeTimeUnit in class AbstractValueHolder<V>

equals

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