org.infinispan.container.entries.versioned
Class VersionedImmortalCacheEntry
java.lang.Object
org.infinispan.container.entries.AbstractInternalCacheEntry
org.infinispan.container.entries.ImmortalCacheEntry
org.infinispan.container.entries.versioned.VersionedImmortalCacheEntry
- All Implemented Interfaces:
- Cloneable, Map.Entry<Object,Object>, CacheEntry, InternalCacheEntry, Versioned
public class VersionedImmortalCacheEntry
- extends ImmortalCacheEntry
- implements Versioned
A form of ImmortalCacheEntry
that is Versioned
- Since:
- 5.1
- Author:
- Manik Surtani
Methods inherited from class org.infinispan.container.entries.ImmortalCacheEntry |
canExpire, clone, equals, getCreated, getExpiryTime, getLastUsed, getLifespan, getMaxIdle, getValue, hashCode, isExpired, isExpired, reincarnate, 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, setLifespan, setMaxIdle, setRemoved, setValid, undelete |
VersionedImmortalCacheEntry
public VersionedImmortalCacheEntry(Object key,
Object value,
EntryVersion version)
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.