org.infinispan.container.entries.versioned
Class VersionedTransientMortalCacheEntry

java.lang.Object
  extended by org.infinispan.container.entries.AbstractInternalCacheEntry
      extended by org.infinispan.container.entries.TransientMortalCacheEntry
          extended by org.infinispan.container.entries.versioned.VersionedTransientMortalCacheEntry
All Implemented Interfaces:
Cloneable, Map.Entry<Object,Object>, CacheEntry, InternalCacheEntry, Versioned

public class VersionedTransientMortalCacheEntry
extends TransientMortalCacheEntry
implements Versioned

A form of TransientMortalCacheEntry that is Versioned

Since:
5.1
Author:
Manik Surtani

Nested Class Summary
static class VersionedTransientMortalCacheEntry.Externalizer
           
 
Field Summary
 
Fields inherited from class org.infinispan.container.entries.TransientMortalCacheEntry
cacheValue
 
Fields inherited from class org.infinispan.container.entries.AbstractInternalCacheEntry
key
 
Constructor Summary
VersionedTransientMortalCacheEntry(Object key, Object value, EntryVersion version, long maxIdle, long lifespan)
           
VersionedTransientMortalCacheEntry(Object key, Object value, EntryVersion version, long maxIdle, long lifespan, long lastUsed, long created)
           
 
Method Summary
 EntryVersion getVersion()
           
 void setVersion(EntryVersion version)
          Sets the version on this entry.
 
Methods inherited from class org.infinispan.container.entries.TransientMortalCacheEntry
canExpire, clone, equals, getCreated, getExpiryTime, getLastUsed, getLifespan, getMaxIdle, getValue, hashCode, isExpired, isExpired, reincarnate, setLifespan, setMaxIdle, 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, setRemoved, setValid, undelete
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionedTransientMortalCacheEntry

public VersionedTransientMortalCacheEntry(Object key,
                                          Object value,
                                          EntryVersion version,
                                          long maxIdle,
                                          long lifespan)

VersionedTransientMortalCacheEntry

public VersionedTransientMortalCacheEntry(Object key,
                                          Object value,
                                          EntryVersion version,
                                          long maxIdle,
                                          long lifespan,
                                          long lastUsed,
                                          long created)
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.