org.infinispan.container.entries.versioned
Class VersionedImmortalCacheValue

java.lang.Object
  extended by org.infinispan.container.entries.ImmortalCacheValue
      extended by org.infinispan.container.entries.versioned.VersionedImmortalCacheValue
All Implemented Interfaces:
Cloneable, InternalCacheValue, Versioned

public class VersionedImmortalCacheValue
extends ImmortalCacheValue
implements Versioned

A form of ImmortalCacheValue that is Versioned

Since:
5.1
Author:
Manik Surtani

Nested Class Summary
static class VersionedImmortalCacheValue.Externalizer
           
 
Field Summary
 
Fields inherited from class org.infinispan.container.entries.ImmortalCacheValue
value
 
Constructor Summary
VersionedImmortalCacheValue(Object value, EntryVersion version)
           
 
Method Summary
 EntryVersion getVersion()
           
 void setVersion(EntryVersion version)
          Sets the version on this entry.
 InternalCacheEntry toInternalCacheEntry(Object key)
           
 String toString()
           
 
Methods inherited from class org.infinispan.container.entries.ImmortalCacheValue
canExpire, clone, equals, getCreated, getLastUsed, getLifespan, getMaxIdle, getValue, hashCode, isExpired, isExpired, setValue
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionedImmortalCacheValue

public VersionedImmortalCacheValue(Object value,
                                   EntryVersion version)
Method Detail

toInternalCacheEntry

public InternalCacheEntry toInternalCacheEntry(Object key)
Specified by:
toInternalCacheEntry in interface InternalCacheValue
Overrides:
toInternalCacheEntry in class ImmortalCacheValue

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

toString

public String toString()
Overrides:
toString in class ImmortalCacheValue

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.