org.infinispan.container.entries.versioned
Class VersionedImmortalCacheEntry

java.lang.Object
  extended by org.infinispan.container.entries.AbstractInternalCacheEntry
      extended by org.infinispan.container.entries.ImmortalCacheEntry
          extended by 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

Nested Class Summary
static class VersionedImmortalCacheEntry.Externalizer
           
 
Field Summary
 
Fields inherited from class org.infinispan.container.entries.ImmortalCacheEntry
cacheValue
 
Fields inherited from class org.infinispan.container.entries.AbstractInternalCacheEntry
key
 
Constructor Summary
VersionedImmortalCacheEntry(Object key, Object value, EntryVersion version)
           
 
Method Summary
 EntryVersion getVersion()
           
 void setVersion(EntryVersion version)
          Sets the version on this entry.
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionedImmortalCacheEntry

public VersionedImmortalCacheEntry(Object key,
                                   Object value,
                                   EntryVersion version)
Method Detail

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.