org.ehcache.impl.internal.store.heap.holders
Class OnHeapValueHolder<V>
java.lang.Object
org.ehcache.core.spi.cache.AbstractValueHolder<V>
org.ehcache.impl.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
|
Constructor Summary |
protected |
OnHeapValueHolder(long id,
long creationTime,
boolean veto)
|
protected |
OnHeapValueHolder(long id,
long creationTime,
long expirationTime,
boolean veto)
|
Methods inherited from class org.ehcache.core.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 |
TIME_UNIT
public static final java.util.concurrent.TimeUnit TIME_UNIT
OnHeapValueHolder
protected OnHeapValueHolder(long id,
long creationTime,
boolean veto)
OnHeapValueHolder
protected OnHeapValueHolder(long id,
long creationTime,
long expirationTime,
boolean veto)
veto
public boolean veto()
size
public long size()
setSize
public void setSize(long size)
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>