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, lifespaninternalMetadata, value| Modifier | Constructor and Description |
|---|---|
|
TransientMortalCacheValue(Object value,
long created,
long lifespan,
long maxIdle,
long lastUsed) |
protected |
TransientMortalCacheValue(Object value,
PrivateMetadata internalMetadata,
long created,
long lifespan,
long maxIdle,
long lastUsed) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendFieldsToString(StringBuilder builder) |
TransientMortalCacheValue |
clone() |
boolean |
equals(Object o) |
long |
getExpiryTime() |
long |
getLastUsed() |
long |
getMaxIdle() |
int |
hashCode() |
boolean |
isExpired(long now) |
boolean |
isMaxIdleExpirable() |
void |
setLastUsed(long lastUsed) |
void |
setMaxIdle(long maxIdle) |
InternalCacheEntry<?,?> |
toInternalCacheEntry(Object key) |
canExpire, getCreated, getLifespan, setCreated, setLifespangetInternalMetadata, getMetadata, getValue, setInternalMetadata, setValue, toStringpublic TransientMortalCacheValue(Object value, long created, long lifespan, long maxIdle, long lastUsed)
protected TransientMortalCacheValue(Object value, PrivateMetadata internalMetadata, long created, long lifespan, 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 boolean isExpired(long now)
isExpired in interface InternalCacheValueisExpired in class MortalCacheValuenow - the current time as expressed by System.currentTimeMillis()public boolean isMaxIdleExpirable()
public InternalCacheEntry<?,?> toInternalCacheEntry(Object key)
toInternalCacheEntry in interface InternalCacheValuetoInternalCacheEntry in class MortalCacheValuepublic long getExpiryTime()
getExpiryTime in interface InternalCacheValuegetExpiryTime in class MortalCacheValuepublic boolean equals(Object o)
equals in class MortalCacheValuepublic int hashCode()
hashCode in class MortalCacheValuepublic TransientMortalCacheValue clone()
clone in class MortalCacheValueprotected void appendFieldsToString(StringBuilder builder)
appendFieldsToString in class MortalCacheValueCopyright © 2022 JBoss by Red Hat. All rights reserved.