org.infinispan.container.entries
Class ImmortalCacheValue
java.lang.Object
org.infinispan.container.entries.ImmortalCacheValue
- All Implemented Interfaces:
- InternalCacheValue
- Direct Known Subclasses:
- MortalCacheValue, TransientCacheValue
public class ImmortalCacheValue
- extends Object
- implements InternalCacheValue
An immortal cache value, to correspond with ImmortalCacheEntry
- Since:
- 4.0
- Author:
- Manik Surtani
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setValue
public void setValue(Object value)
getValue
public Object getValue()
- Specified by:
getValue
in interface InternalCacheValue
- Returns:
- the value represented by this internal wrapper
toInternalCacheEntry
public InternalCacheEntry toInternalCacheEntry(Object key)
- Specified by:
toInternalCacheEntry
in interface InternalCacheValue
isExpired
public boolean isExpired()
- Specified by:
isExpired
in interface InternalCacheValue
- Returns:
- true if the entry has expired; false otherwise
canExpire
public boolean canExpire()
- Specified by:
canExpire
in interface InternalCacheValue
- Returns:
- true if the entry can expire, false otherwise
getCreated
public long getCreated()
- Specified by:
getCreated
in interface InternalCacheValue
- Returns:
- timestamp when the entry was created
getLastUsed
public long getLastUsed()
- Specified by:
getLastUsed
in interface InternalCacheValue
- Returns:
- timestamp when the entry was last used
getLifespan
public long getLifespan()
- Specified by:
getLifespan
in interface InternalCacheValue
- Returns:
- lifespan of the value
getMaxIdle
public long getMaxIdle()
- Specified by:
getMaxIdle
in interface InternalCacheValue
- Returns:
- max idle time allowed
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.