org.infinispan.container.entries.versioned
Class VersionedTransientMortalCacheValue

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

public class VersionedTransientMortalCacheValue
extends TransientMortalCacheValue
implements Versioned

A form of TransientMortalCacheValue that is Versioned

Since:
5.1
Author:
Manik Surtani

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

Constructor Detail

VersionedTransientMortalCacheValue

public VersionedTransientMortalCacheValue(Object value,
                                          EntryVersion version,
                                          long created,
                                          long lifespan,
                                          long maxIdle,
                                          long lastUsed)

VersionedTransientMortalCacheValue

public VersionedTransientMortalCacheValue(Object value,
                                          EntryVersion version,
                                          long created,
                                          long lifespan,
                                          long maxIdle)

VersionedTransientMortalCacheValue

public VersionedTransientMortalCacheValue(Object value,
                                          EntryVersion version,
                                          long created)
Method Detail

toInternalCacheEntry

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

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.