org.infinispan.container.entries.versioned
Class VersionedMortalCacheEntry
java.lang.Object
org.infinispan.container.entries.AbstractInternalCacheEntry
org.infinispan.container.entries.MortalCacheEntry
org.infinispan.container.entries.versioned.VersionedMortalCacheEntry
- All Implemented Interfaces:
- Cloneable, Map.Entry<Object,Object>, CacheEntry, InternalCacheEntry, Versioned
public class VersionedMortalCacheEntry
- extends MortalCacheEntry
- implements Versioned
A form of MortalCacheEntry
that is Versioned
- Since:
- 5.1
- Author:
- Manik Surtani
Methods inherited from class org.infinispan.container.entries.MortalCacheEntry |
canExpire, clone, equals, getCreated, getExpiryTime, getLastUsed, getLifespan, getMaxIdle, getValue, hashCode, isExpired, isExpired, reincarnate, setLifespan, setValue, toInternalCacheValue, toString, touch, touch |
Methods inherited from class org.infinispan.container.entries.AbstractInternalCacheEntry |
commit, getKey, isChanged, isCreated, isEvicted, isLockPlaceholder, isNull, isRemoved, isValid, rollback, setCreated, setEvicted, setMaxIdle, setRemoved, setValid, undelete |
VersionedMortalCacheEntry
public VersionedMortalCacheEntry(Object key,
Object value,
EntryVersion version,
long lifespan,
long created)
VersionedMortalCacheEntry
public VersionedMortalCacheEntry(Object key,
Object value,
EntryVersion version,
long lifespan)
getVersion
public EntryVersion getVersion()
- Specified by:
getVersion
in interface Versioned
- Overrides:
getVersion
in class AbstractInternalCacheEntry
- 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
- Overrides:
setVersion
in class AbstractInternalCacheEntry
- Parameters:
version
- version to set
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.