org.infinispan.container.entries
Class TransientCacheValue

java.lang.Object
  extended by org.infinispan.container.entries.ImmortalCacheValue
      extended by org.infinispan.container.entries.TransientCacheValue
All Implemented Interfaces:
InternalCacheValue

public class TransientCacheValue
extends ImmortalCacheValue

A transient cache value, to correspond with TransientCacheEntry

Since:
4.0
Author:
Manik Surtani

Method Summary
 boolean canExpire()
           
 long getLastUsed()
           
 long getMaxIdle()
           
 boolean isExpired()
           
 void setLastUsed(long lastUsed)
           
 void setMaxIdle(long maxIdle)
           
 InternalCacheEntry toInternalCacheEntry(Object key)
           
 
Methods inherited from class org.infinispan.container.entries.ImmortalCacheValue
getCreated, getLifespan, getValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMaxIdle

public long getMaxIdle()
Specified by:
getMaxIdle in interface InternalCacheValue
Overrides:
getMaxIdle in class ImmortalCacheValue
Returns:
max idle time allowed

setMaxIdle

public void setMaxIdle(long maxIdle)

getLastUsed

public long getLastUsed()
Specified by:
getLastUsed in interface InternalCacheValue
Overrides:
getLastUsed in class ImmortalCacheValue
Returns:
timestamp when the entry was last used

setLastUsed

public void setLastUsed(long lastUsed)

isExpired

public boolean isExpired()
Specified by:
isExpired in interface InternalCacheValue
Overrides:
isExpired in class ImmortalCacheValue
Returns:
true if the entry has expired; false otherwise

canExpire

public boolean canExpire()
Specified by:
canExpire in interface InternalCacheValue
Overrides:
canExpire in class ImmortalCacheValue
Returns:
true if the entry can expire, false otherwise

toInternalCacheEntry

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


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