org.ehcache.impl.internal.store.heap.holders
Class SerializedOnHeapValueHolder<V>
java.lang.Object
org.ehcache.core.spi.cache.AbstractValueHolder<V>
org.ehcache.impl.internal.store.heap.holders.OnHeapValueHolder<V>
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
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.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 |
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)
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>