public class MetadataTransientCacheValue extends ImmortalCacheValue implements MetadataAware
TransientCacheEntry which is
MetadataAware| Modifier and Type | Class and Description |
|---|---|
static class |
MetadataTransientCacheValue.Externalizer |
value| Constructor and Description |
|---|
MetadataTransientCacheValue(Object value,
Metadata metadata,
long lastUsed) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExpire() |
long |
getExpiryTime() |
long |
getLastUsed() |
long |
getMaxIdle() |
Metadata |
getMetadata()
Get metadata of this cache entry.
|
boolean |
isExpired() |
boolean |
isExpired(long now) |
void |
setMetadata(Metadata metadata)
Set the metadata in the cache entry.
|
InternalCacheEntry |
toInternalCacheEntry(Object key) |
clone, equals, getCreated, getLifespan, getValue, hashCode, setValue, toStringpublic InternalCacheEntry toInternalCacheEntry(Object key)
toInternalCacheEntry in interface InternalCacheValuetoInternalCacheEntry in class ImmortalCacheValuepublic long getMaxIdle()
getMaxIdle in interface InternalCacheValuegetMaxIdle in class ImmortalCacheValuepublic long getLastUsed()
getLastUsed in interface InternalCacheValuegetLastUsed in class ImmortalCacheValuepublic 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 Metadata getMetadata()
MetadataAwaregetMetadata in interface InternalCacheValuegetMetadata in interface MetadataAwaregetMetadata in class ImmortalCacheValuepublic void setMetadata(Metadata metadata)
MetadataAwaresetMetadata in interface MetadataAwaremetadata - to apply to the cache entrypublic long getExpiryTime()
getExpiryTime in interface InternalCacheValuegetExpiryTime in class ImmortalCacheValueCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.