org.infinispan.container.entries.versioned
Class VersionedTransientCacheEntry

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

public class VersionedTransientCacheEntry
extends TransientCacheEntry
implements Versioned

A form of TransientCacheEntry that is Versioned

Since:
5.1
Author:
Manik Surtani

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

Constructor Detail

VersionedTransientCacheEntry

public VersionedTransientCacheEntry(Object key,
                                    Object value,
                                    EntryVersion version,
                                    long maxIdle)

VersionedTransientCacheEntry

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