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 |
internalMetadata, value| Modifier | Constructor and Description |
|---|---|
|
TransientCacheValue(Object value,
long maxIdle,
long lastUsed) |
protected |
TransientCacheValue(Object value,
PrivateMetadata internalMetadata,
long maxIdle,
long lastUsed) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendFieldsToString(StringBuilder builder) |
boolean |
canExpire() |
TransientCacheValue |
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) |
getCreated, getInternalMetadata, getLifespan, getMetadata, getValue, setInternalMetadata, setValue, toStringpublic TransientCacheValue(Object value, long maxIdle, long lastUsed)
protected TransientCacheValue(Object value, PrivateMetadata internalMetadata, 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 boolean canExpire()
canExpire in interface InternalCacheValuecanExpire in class ImmortalCacheValuepublic boolean isMaxIdleExpirable()
public InternalCacheEntry<?,?> toInternalCacheEntry(Object key)
toInternalCacheEntry in interface InternalCacheValuetoInternalCacheEntry in class ImmortalCacheValuepublic long getExpiryTime()
getExpiryTime in interface InternalCacheValuegetExpiryTime in class ImmortalCacheValuepublic boolean equals(Object o)
equals in class ImmortalCacheValuepublic int hashCode()
hashCode in class ImmortalCacheValuepublic TransientCacheValue clone()
clone in class ImmortalCacheValueprotected void appendFieldsToString(StringBuilder builder)
appendFieldsToString in class ImmortalCacheValueCopyright © 2022 JBoss by Red Hat. All rights reserved.