org.infinispan.container.entries.versioned
Class VersionedMortalCacheValue
java.lang.Object
org.infinispan.container.entries.ImmortalCacheValue
org.infinispan.container.entries.MortalCacheValue
org.infinispan.container.entries.versioned.VersionedMortalCacheValue
- All Implemented Interfaces:
- Cloneable, InternalCacheValue, Versioned
public class VersionedMortalCacheValue
- extends MortalCacheValue
- implements Versioned
A form of MortalCacheValue
that is Versioned
- Since:
- 5.1
- Author:
- Manik Surtani
Methods inherited from class org.infinispan.container.entries.MortalCacheValue |
canExpire, clone, equals, getCreated, getLifespan, hashCode, isExpired, isExpired, setCreated, setLifespan, toString |
VersionedMortalCacheValue
public VersionedMortalCacheValue(Object value,
EntryVersion version,
long created,
long lifespan)
toInternalCacheEntry
public InternalCacheEntry toInternalCacheEntry(Object key)
- Specified by:
toInternalCacheEntry
in interface InternalCacheValue
- Overrides:
toInternalCacheEntry
in class MortalCacheValue
getVersion
public EntryVersion getVersion()
- Specified by:
getVersion
in interface Versioned
- Returns:
- the version of the entry. May be null if versioning is not supported, and must never be null if
versioning is supported.
setVersion
public void setVersion(EntryVersion version)
- Description copied from interface:
Versioned
- Sets the version on this entry.
- Specified by:
setVersion
in interface Versioned
- Parameters:
version
- version to set
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.