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, lifespan
internalMetadata, 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, setLifespan
getInternalMetadata, getMetadata, getValue, setInternalMetadata, setValue, toString
public 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 InternalCacheValue
getMaxIdle
in class ImmortalCacheValue
public void setMaxIdle(long maxIdle)
public long getLastUsed()
getLastUsed
in interface InternalCacheValue
getLastUsed
in class ImmortalCacheValue
public void setLastUsed(long lastUsed)
public boolean isExpired(long now)
isExpired
in interface InternalCacheValue
isExpired
in class MortalCacheValue
now
- the current time as expressed by System.currentTimeMillis()
public boolean isMaxIdleExpirable()
public InternalCacheEntry<?,?> toInternalCacheEntry(Object key)
toInternalCacheEntry
in interface InternalCacheValue
toInternalCacheEntry
in class MortalCacheValue
public long getExpiryTime()
getExpiryTime
in interface InternalCacheValue
getExpiryTime
in class MortalCacheValue
public boolean equals(Object o)
equals
in class MortalCacheValue
public int hashCode()
hashCode
in class MortalCacheValue
public TransientMortalCacheValue clone()
clone
in class MortalCacheValue
protected void appendFieldsToString(StringBuilder builder)
appendFieldsToString
in class MortalCacheValue
Copyright © 2021 JBoss by Red Hat. All rights reserved.