public class TransientMortalCacheValue extends MortalCacheValue
TransientMortalCacheEntry| Modifier and Type | Class and Description |
|---|---|
static class |
TransientMortalCacheValue.Externalizer |
| Modifier and Type | Field and Description |
|---|---|
protected long |
lastUsed |
protected long |
maxIdle |
created, lifespanvalue| Constructor and Description |
|---|
TransientMortalCacheValue(Object value,
long created) |
TransientMortalCacheValue(Object value,
long created,
long lifespan,
long maxIdle) |
TransientMortalCacheValue(Object value,
long created,
long lifespan,
long maxIdle,
long lastUsed) |
| Modifier and Type | Method and Description |
|---|---|
TransientMortalCacheValue |
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() |
canExpire, getCreated, getLifespan, setCreated, setLifespangetValue, setValuepublic TransientMortalCacheValue(Object value, long created, long lifespan, long maxIdle, long lastUsed)
public TransientMortalCacheValue(Object value, long created, long lifespan, long maxIdle)
public TransientMortalCacheValue(Object value, long created)
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 boolean isExpired(long now)
isExpired in interface InternalCacheValueisExpired in class MortalCacheValuenow - the current time as expressed by System.currentTimeMillis()public boolean isExpired()
isExpired in interface InternalCacheValueisExpired in class MortalCacheValuepublic InternalCacheEntry toInternalCacheEntry(Object key)
toInternalCacheEntry in interface InternalCacheValuetoInternalCacheEntry in class MortalCacheValuepublic boolean equals(Object o)
equals in class MortalCacheValuepublic int hashCode()
hashCode in class MortalCacheValuepublic String toString()
toString in class MortalCacheValuepublic TransientMortalCacheValue clone()
clone in class MortalCacheValueCopyright © 2012 JBoss by Red Hat. All Rights Reserved.