public class TransientCacheValue extends ImmortalCacheValue
TransientCacheEntry| Modifier and Type | Class and Description |
|---|---|
static class |
TransientCacheValue.Externalizer |
| Modifier and Type | Field and Description |
|---|---|
protected long |
lastUsed |
protected long |
maxIdle |
value| Constructor and Description |
|---|
TransientCacheValue(Object value,
long maxIdle,
long lastUsed) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExpire() |
TransientCacheValue |
clone() |
boolean |
equals(Object o) |
long |
getLastUsed() |
long |
getMaxIdle() |
int |
hashCode() |
boolean |
isExpired() |
boolean |
isExpired(long now) |
void |
setLastUsed(long lastUsed) |
void |
setMaxIdle(long maxIdle) |
InternalCacheEntry |
toInternalCacheEntry(Object key) |
String |
toString() |
getCreated, getLifespan, getValue, setValuepublic TransientCacheValue(Object value, long maxIdle, long lastUsed)
public long getMaxIdle()
getMaxIdle in interface InternalCacheValuegetMaxIdle in class ImmortalCacheValuepublic void setMaxIdle(long maxIdle)
public long getLastUsed()
getLastUsed in interface InternalCacheValuegetLastUsed in class ImmortalCacheValuepublic void setLastUsed(long lastUsed)
public final boolean isExpired(long now)
isExpired in interface InternalCacheValueisExpired in class ImmortalCacheValuenow - the current time as expressed by System.currentTimeMillis()public final boolean isExpired()
isExpired in interface InternalCacheValueisExpired in class ImmortalCacheValuepublic boolean canExpire()
canExpire in interface InternalCacheValuecanExpire in class ImmortalCacheValuepublic InternalCacheEntry toInternalCacheEntry(Object key)
toInternalCacheEntry in interface InternalCacheValuetoInternalCacheEntry in class ImmortalCacheValuepublic boolean equals(Object o)
equals in class ImmortalCacheValuepublic int hashCode()
hashCode in class ImmortalCacheValuepublic String toString()
toString in class ImmortalCacheValuepublic TransientCacheValue clone()
clone in class ImmortalCacheValueCopyright © 2012 JBoss by Red Hat. All Rights Reserved.